• Simon McVittie's avatar
    tests: Generate random values in unsigned integer space · 3241b4fe
    Simon McVittie authored
    When we're doing bitwise operations, addition with wraparound and
    large left-shifts, it seems safer to use unsigned integers, where
    the effect of overflow is well-defined (it wraps around). Signed
    integer overflow is undefined behaviour, so compilers are free to
    optimize by assuming that it cannot happen.
    Detected by the undefined behaviour sanitizer (UBSan).
    Signed-off-by: Simon McVittie's avatarSimon McVittie <smcv@collabora.com>
dbus-marshal-recursive-util.c 95.5 KB