]> git.ipfire.org Git - thirdparty/suricata.git/commit
conf: fix NULL-pointer dereference in ParseSizeString
authorWolfgang Hotwagner <code@feedyourhead.at>
Fri, 17 Nov 2017 17:47:41 +0000 (17:47 +0000)
committerVictor Julien <victor@inliniac.net>
Mon, 20 Nov 2017 10:23:37 +0000 (11:23 +0100)
commit2e27a5df6b6cee7a3fdd4b6e0709a38f925ac4ad
treed35b296d16bb0274a0e960fe80922b8e0fe772c3
parentf3fea60bae3e61f27870ccc7b7f00591b8f6a188
conf: fix NULL-pointer dereference in ParseSizeString

If someone accidently writes invalid characters in some parts of the suricata.yaml-configfile, the size-parameter of the ParseSizeString-function becomes NULL and gets dereferenced. Suricata crashes with SEGV. This commit fixes Ticket #2274

The following config value leads to a Segfault:
app-layer.protocols.smtp.inspected-tracker.content-inspect-window: *4096
src/util-misc.c