]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect-filemagic: fix heap-use-after-free 2138/head
authorAndreas Herz <andi@geekosphere.org>
Sat, 4 Jun 2016 22:48:38 +0000 (00:48 +0200)
committerAndreas Herz <andi@geekosphere.org>
Sat, 4 Jun 2016 22:48:38 +0000 (00:48 +0200)
commit36e4126227f6ca0695ec8b9553961e536d1dc816
tree520eab18e118be41fedc2b4097df2c2ab92a66b8
parenta3095987217356d3175874477c0c80c007c8fd4c
detect-filemagic: fix heap-use-after-free

This fixes the heap-use-after-free issue with sm being freed without
being removed from the signature (s) list. Move the protocol check for
rules with filemagic before the alloc and make the error log more
precise.
src/detect-filemagic.c