offset_of is unsound
RalfJung opened this issue · 1 comments
RalfJung commented
The macro at
authenticator-rs/src/windows/winapi.rs
Line 66 in 660a701
*
on a NULL pointer. See the reference for details.
The memoffset crate provides a version of this macro that avoids UB (on older versions of rustc, this is not always possible, so it falls back to the 'least incorrect' version when needed).