summaryrefslogtreecommitdiff
path: root/src/lib/libc
diff options
context:
space:
mode:
authormiod <>2015-11-05 21:59:13 +0000
committermiod <>2015-11-05 21:59:13 +0000
commit06241eadbc6296ead3b3ead7f6260bc292c81890 (patch)
tree1d90ae7090270b523f420eab6af6609f7e4cc1ee /src/lib/libc
parent6ad1982c36524ececd73d40330e3d88af3acfff9 (diff)
downloadopenbsd-06241eadbc6296ead3b3ead7f6260bc292c81890.tar.gz
openbsd-06241eadbc6296ead3b3ead7f6260bc292c81890.tar.bz2
openbsd-06241eadbc6296ead3b3ead7f6260bc292c81890.zip
Cast Td4[] values (which are uint8_t) to uint32_t before shifting them left by
24 bits; if we don't, Td4[] gets cast to signed int, and according to C>=99 6.5.7, signed int shifted by enough bits to cause a the sign bit to be set is an UB. Reported by Pascal Cuoq on behalf of the trust-in-soft.com mafia I am {partial,slightly related} to.
Diffstat (limited to 'src/lib/libc')
0 files changed, 0 insertions, 0 deletions