Bug #2349
closedconf: multiple NULL-pointer dereferences in FlowInitConfig
Description
There are multiple NULL-pointer dereferences in FlowInitConfig after reading in config-values for flow. Here is a sample ASAN-output:
=================================================================
25411ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fea73456646 bp 0x7fffd70e1ba0 sp 0x7fffd70e1328 T0)
#0 0x7fea73456645 in strlen (/lib/x86_64-linux-gnu/libc.so.6+0x80645)
#1 0x7fea76c98eec (/usr/lib/x86_64-linux-gnu/libasan.so.3+0x3beec)
#2 0x5643efb4c205 in FlowInitConfig /root/suricata-1/src/flow.c:455
#3 0x5643efcd1751 in PreRunInit /root/suricata-1/src/suricata.c:2247
#4 0x5643efcd49f4 in PostConfLoadedSetup /root/suricata-1/src/suricata.c:2748
#5 0x5643efcd5402 in main /root/suricata-1/src/suricata.c:2884
#6 0x7fea733f62b0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202b0)
#7 0x5643ef8761a9 in _start (/usr/local/bin/suricata+0xc51a9)