]> git.ipfire.org Git - thirdparty/suricata.git/commit
SSE 4.2 memcmp: don't read beyond var boundary 644/head
authorVictor Julien <victor@inliniac.net>
Wed, 20 Nov 2013 10:57:26 +0000 (11:57 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 20 Nov 2013 10:57:26 +0000 (11:57 +0100)
commit2ec57c36b442b1c860ef40ad759320e9b0a01e35
tree2568430d74ded5034d21ece4189d8bd645301f45
parentd3c6913e28760d1c2d39c5c77f473f64b4a344c0
SSE 4.2 memcmp: don't read beyond var boundary

In the SSE 4.2 SCMemcmpLowercase implementation, there would be a
_mm_load_si128 of a 2 byte array. However, _mm_load_si128 loads
16 bytes, causing it to read beyond the var. I don't think this lead
to crashes, as it was a static var, but clangs ASAN complained about
it.
src/util-memcmp.h