diff options
author | 2015-11-05 21:59:13 +0000 | |
---|---|---|
committer | 2015-11-05 21:59:13 +0000 | |
commit | 282842ed6373bbccd1eab438e5c1d3782843e264 (patch) | |
tree | 095fcaddb05a4ea0b55b739fe0632138d3f14845 /usr.bin/less/lsystem.c | |
parent | Whitespace, reduce diff to ping. (diff) | |
download | wireguard-openbsd-282842ed6373bbccd1eab438e5c1d3782843e264.tar.xz wireguard-openbsd-282842ed6373bbccd1eab438e5c1d3782843e264.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 'usr.bin/less/lsystem.c')
0 files changed, 0 insertions, 0 deletions