Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix patched zerovec-derive version #2007

Merged
merged 1 commit into from
Jul 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/zerovec-derive/RUSTSEC-2024-0346.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ date = "2024-07-01"
categories = ["memory-corruption"]

[versions]
patched = [">= 0.10.4", ">= 0.9.7, <0.10.0"]
patched = [">= 0.10.3", ">= 0.9.7, <0.10.0"]
```

# Incorrect usage of `#[repr(packed)]`
Expand All @@ -16,4 +16,4 @@ The affected versions make unsafe memory accesses under the assumption that `#[r
The Rust specification does not guarantee this, and https://github.com/rust-lang/rust/pull/125360 (1.80.0-beta) starts
reordering fields of `#[repr(packed)]` structs, leading to illegal memory accesses.

The patched versions `0.9.7` and `0.10.4` use `#[repr(C, packed)]`, which guarantees field order.
The patched versions `0.9.7` and `0.10.3` use `#[repr(C, packed)]`, which guarantees field order.