You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: validate declared bucket count in TreemapReader
TreemapReader::new previously read only the 8-byte bucket count and
trusted the declared size, so a corrupt buffer that declares N buckets
but carries fewer (or none) was silently treated as valid.
This diverged from deserialize_bitmap, which will rejects it.
A lazy check in TreeMapIter::next cannot close this gap, because
early-return callers such as bitmap_min stop calling next before
reaching the missing trailing
Walk all `size` bucket headers in TreemapReader::new so that truncation
is rejected up front. The cost paid to keep consistent with
deserialize_bitmap on corrupt buffers.
0 commit comments