#[derive(IntoBytes)]
on unions should not consider #[repr(packed)]
sufficient to guarantee layout
#1757
Labels
blocking-next-release
This issue should be resolved before we release on crates.io
bug
Something isn't working
This is a soundness hole.
#[repr(packed)]
is a modifier to other reprs, but does not on its own guarantee layout, and does not require Rust to promise not to perform niche-filling optimizations.While we're here, we should audit other locations where we permit
repr(packed)
withoutrepr(C)
.The text was updated successfully, but these errors were encountered: