mozilla/authenticator-rs

offset_of is unsound

RalfJung opened this issue · 1 comments

The macro at

macro_rules! offset_of {
is unsound and causes UB due to using * 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).

This was fixed by #171