Issue: 5945
This commit adds a byte-math test with a zero divisor. Division by 0 is
undefined so there's no match.
--- /dev/null
+Description
+===========
+Test byte_math payload keyword with a 0 division.
+
+PCAP
+====
+PCAP comes from the suricata verify test[detect-bytemath-01]
+
+Redmine ticket
+==============
+https://redmine.openinfosecfoundation.org/issues/5945
--- /dev/null
+alert tcp any any -> any any (ipv4.hdr; byte_extract: 1, 2, extracted_val, relative;byte_math: bytes 1, offset 0, oper /, rvalue extracted_val, result var;msg:\
+"Byte extract and byte math with 0 devide\
+";sid:1;)
--- /dev/null
+requires:
+ files:
+ - src/detect-bytemath.c
+
+checks:
+ - filter:
+ count: 0
+ match:
+ event_type: alert
+ alert.signature_id: 1