-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For whatever reason it treated 1 as the minimum number of blocks and would corrupt itself if it was already at 0 blocks. It also never actualy did a shrink_to_fit, it just told the underlying bit_vec that it had less initialized blocks. So all around just a buggy mess. Thankfully although the bit_set code is 'unsafe' it wasn't ever actually a memory-safety issue. The unsafe here is a reservation from bit_vec to be more dangerous, but the implementation never actually has any unsafe code of its own, so this was just state corruption that would crash, similar to feeding a bad Ord impl into a BTreeMap. Bad, but not a vulnerability. Fixes #25
- Loading branch information
Showing
1 changed file
with
88 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters