GitHub Advisory Database
GHSA-vfqx-hv88-f9cv
Double-free in id-map
Details
A double free can occur in get_or_insert upon a panic of a user-provided f function. get_or_insert reserves space for a value, before calling the user provided insertion function f. If the function f panics then uninitialized or previously freed memory can be dropped.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| crates.io | id-map | All versions up to and including 0.2.1 |