RustSec logo

History ⋅ Edit ⋅ JSON (OSV)

RUSTSEC-2026-0582

On maps of u16::MAX elements, IndexMap::insert could lead to a broken invariant

Reported
Issued
Package
heapless (crates.io)
Type
INFO Unsound
Categories
References
Patched
  • >=0.9.4
Affected Functions
Version
heapless::index_map::IndexMap::insert
  • <0.9.4

Description

Note that this required filling up the map and having the last item inserted to hash to u16::MAX. It is therefore very unlikely to be reachable in a real-world scenario.

Reported by 8rsrf7.

Advisory available under CC0-1.0 license.