Skip to content

Update Rust crate smallvec to v1.6.1 [SECURITY]#26

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/crate-smallvec-vulnerability
Open

Update Rust crate smallvec to v1.6.1 [SECURITY]#26
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/crate-smallvec-vulnerability

Conversation

@renovate
Copy link
Copy Markdown

@renovate renovate bot commented Aug 28, 2024

This PR contains the following updates:

Package Type Update Change
smallvec dependencies minor 1.0.01.6.1

GitHub Vulnerability Alerts

CVE-2021-25900

A bug in the SmallVec::insert_many method caused it to allocate a buffer that was smaller than needed. It then wrote past the end of the buffer, causing a buffer overflow and memory corruption on the heap. This bug was only triggered if the iterator passed to insert_many yielded more items than the lower bound returned from its size_hint method.

The flaw was corrected in smallvec 0.6.14 and 1.6.1, by ensuring that additional space is always reserved for each item inserted. The fix also simplified the implementation of insert_many to use less unsafe code, so it is easier to verify its correctness.

Severity
  • CVSS Score: 9.8 / 10 (Critical)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Release Notes

servo/rust-smallvec (smallvec)

v1.6.1

Compare Source

v1.6.0

Compare Source

  • The "union" feature is now compatible with stable Rust 1.49 (#​248, #​247).
  • Fixed warnings when compiling with Rust 1.51 nightly (#​242, #​246).

v1.5.1

Compare Source

  • Improve performance of push (#​241).

v1.5.0

Compare Source

  • Add the append method (#​237).
  • Add support for more array sizes between 17 and 31 (#​234).
  • Don't panic on deserialization errors (#​238).

v1.4.2

Compare Source

  • insert_many no longer leaks elements if the provided iterator panics (#​213).
  • The unstable const_generics and specialization features are updated to work with the most recent nightly Rust toolchain (#​232).
  • Internal code cleanup (#​229, #​231).

v1.4.1

Compare Source

  • Don't allocate when the size of the element type is zero. Allocating zero bytes is undefined behavior. (#​228)

v1.4.0

Compare Source

  • Add try_reserve, try_reserve_exact, and try_grow methods (#​214).

v1.3.0

Compare Source

  • Add a new unstable const_generics feature (#​204).
  • Improve inlining of constructor functions (#​206).
  • Add a slice.to_smallvec() convenience method (#​203).
  • Documentation and testing improvements.

v1.2.0

Compare Source

  • IntoIter now implements Debug (#​196).
  • smallvec! macro is now easier to use in no_std contexts where the vec! macro isn't automatically imported (#​198).

v1.1.0

Compare Source

  • Added new method SmallVec::into_boxed_slice (#​190).
  • Added new methods IntoIter::as_slice and as_mut_slice (#​182).
  • IntoIter now implements Clone (#​192).
  • Improved documentation and testing (#​186, #​189, #​193).
  • Minor code cleanups (#​176).

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • ""
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/crate-smallvec-vulnerability branch from 5d5d1dc to dd1efd5 Compare December 10, 2025 14:53
@renovate renovate bot force-pushed the renovate/crate-smallvec-vulnerability branch from dd1efd5 to fdd58e5 Compare February 2, 2026 14:58
@renovate renovate bot force-pushed the renovate/crate-smallvec-vulnerability branch from fdd58e5 to 6d72483 Compare February 12, 2026 15:46
@renovate renovate bot force-pushed the renovate/crate-smallvec-vulnerability branch from 6d72483 to d313ac5 Compare February 25, 2026 10:49
@renovate renovate bot force-pushed the renovate/crate-smallvec-vulnerability branch from d313ac5 to 0e17eb5 Compare March 14, 2026 16:54
@renovate renovate bot changed the title Update Rust crate smallvec to v1.6.1 [SECURITY] Update Rust crate smallvec to v1.6.1 [SECURITY] - autoclosed Mar 27, 2026
@renovate renovate bot closed this Mar 27, 2026
@renovate renovate bot deleted the renovate/crate-smallvec-vulnerability branch March 27, 2026 01:56
@renovate renovate bot changed the title Update Rust crate smallvec to v1.6.1 [SECURITY] - autoclosed Update Rust crate smallvec to v1.6.1 [SECURITY] Mar 30, 2026
@renovate renovate bot reopened this Mar 30, 2026
@renovate renovate bot force-pushed the renovate/crate-smallvec-vulnerability branch 2 times, most recently from 0e17eb5 to 31a7d5f Compare March 30, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants