]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: bytemath do not left shift more than 64
authorPhilippe Antoine <pantoine@oisf.net>
Tue, 14 Mar 2023 11:17:05 +0000 (12:17 +0100)
committerVictor Julien <vjulien@oisf.net>
Mon, 27 Mar 2023 19:46:03 +0000 (21:46 +0200)
commit473ca6dcf4789259ec4543d7d648bd1bd19986fc
tree9664f29aeb374ab123588ee2486d1d6ab11a9e7b
parent60e67db4528b87752623382c89903db534a926e9
detect: bytemath do not left shift more than 64

As it is undefined behavior by C standard.
In this case, zeroes the value.

Ticket: #5900
src/detect-bytemath.c