Skip to content

Properly disclose #148 and #149 #156

@Shnatsel

Description

@Shnatsel

Recently reported #148 and #149 are memory safety issues and may be exploitable. They need to be properly disclosed:

  1. Identify the affected crate versions
  2. Yank vulnerable versions from crates.io
  3. File an advisory in https://github.com/RustSec/advisory-db

I have tried to track down the commits that introduced these bugs:

The testcase I'm using to check for #149 is as follows:

let mut v: SmallVec<[u8; 2]> = SmallVec::new();
v.push(1);
v.push(2);
v.push(3);
assert!(v.spilled());
v.clear();
// Shrink to inline.
v.grow(2);
assert_eq!(v.capacity(), 2);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions