• Paul Kehrer's avatar
    Fix undefined behavior in the macros SET_BH, CLEAR_BH, & ISSET_BH · 451f31b9
    Paul Kehrer authored
    These macros contain this pattern:
    1 << ((Int32_value) & 31
    
    This causes the undefined behavior sanitizers in clang and gcc to
    complain because the shift, while ultimately stored to an unsigned
    variable, is done as a signed value. Adding a cast to unsigned for
    the int32 value resolves this issue.
    451f31b9
Name
Last commit
Last update
docs Loading commit data...
man Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README.XML.STUFF Loading commit data...
README.autotools Loading commit data...
README.md Loading commit data...
autogen.sh Loading commit data...
blocksort.c Loading commit data...
bzdiff Loading commit data...
bzgrep Loading commit data...
bzip2.c Loading commit data...
bzip2.doap Loading commit data...
bzip2.pc.in Loading commit data...
bzip2.txt Loading commit data...
bzip2recover.c Loading commit data...
bzlib.c Loading commit data...
bzlib.h Loading commit data...
bzlib_private.h Loading commit data...
bzmore Loading commit data...
code-of-conduct.md Loading commit data...
compress.c Loading commit data...
configure.ac Loading commit data...
crctable.c Loading commit data...
decompress.c Loading commit data...
dlltest.c Loading commit data...
dlltest.dsp Loading commit data...
huffman.c Loading commit data...
libbz2.def Loading commit data...
libbz2.dsp Loading commit data...
makefile.msc Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...
mk251.c Loading commit data...
patches-not-included.txt Loading commit data...
randtable.c Loading commit data...
spewG.c Loading commit data...
unzcrash.c Loading commit data...
visibility.m4 Loading commit data...