Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
Update vmm-sys-util to 0.12.1
Browse files Browse the repository at this point in the history
The update brings a fix for a security vulnerability behind
feature-gated code not used by kvm-bindings (the `with-serde` feature),
see GHSA-875g-mfp6-g7f9

Signed-off-by: Patrick Roy <[email protected]>
  • Loading branch information
roypat committed Jan 3, 2024
1 parent 19a0f7d commit 351385b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ rustdoc-args = ["--cfg", "docsrs"]
fam-wrappers = ["vmm-sys-util"]

[dependencies]
vmm-sys-util = { version = "0.11.0", optional = true }
vmm-sys-util = { version = "0.12.1", optional = true }
11 changes: 8 additions & 3 deletions src/x86_64/fam_wrappers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,15 @@ mod tests {

let mut wrapper2 = wrapper.clone();
assert!(wrapper == wrapper2);

wrapper.as_mut_fam_struct().pad = 1;
// SAFETY: We are not modifying the `nmsrs` field
unsafe {
wrapper.as_mut_fam_struct().pad = 1;
}
assert!(wrapper != wrapper2);
wrapper2.as_mut_fam_struct().pad = 1;
// SAFETY: We are not modifying the `nmsrs` field
unsafe {
wrapper2.as_mut_fam_struct().pad = 1;
}
assert!(wrapper == wrapper2);

wrapper.as_mut_slice()[1].data = 1;
Expand Down

0 comments on commit 351385b

Please sign in to comment.