]> git.ipfire.org Git - thirdparty/suricata.git/commit
util-ja3: fix AddressSanitizer heap-buffer-overflow
authorMats Klepsland <mats.klepsland@gmail.com>
Sat, 16 Feb 2019 20:49:23 +0000 (21:49 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 20 Feb 2019 13:45:18 +0000 (14:45 +0100)
commit22d8fc802e405d3aa61d557555b313410de120a0
tree6d6b0ae1139b6221a1d6b94d064dff8b082df8f6
parent932e5dedc248782146cb3ab14292948fff306332
util-ja3: fix AddressSanitizer heap-buffer-overflow

No resizing is done in Ja3BufferResizeIfFull() when the buffer is
empty. This leads to a potential overflow when this happens, since
a ',' is appended even when the buffer is empty.

Bug #2762
src/util-ja3.c