mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-02 03:48:10 +02:00
tests: Generate random values in unsigned integer space
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 <smcv@collabora.com>
This commit is contained in:
parent
000ef530e8
commit
3241b4fe56
1 changed files with 259 additions and 255 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue