]> git.ipfire.org Git - thirdparty/suricata.git/commit
hostbits: fail parse on unexpected trailing data
authorJason Ish <ish@unx.ca>
Tue, 13 Sep 2016 23:09:58 +0000 (17:09 -0600)
committerVictor Julien <victor@inliniac.net>
Mon, 19 Sep 2016 06:23:08 +0000 (08:23 +0200)
commitc4945607e3de78a32c83b8a45cb2c10639d29754
tree11688f2bdeda32a363f46736f7ed7747cb7ee47a
parent24f2387b238e4d82ea0a9a1ec5eb12b8238b022e
hostbits: fail parse on unexpected trailing data

Address issue https://redmine.openinfosecfoundation.org/issues/1889
for hostbits. This involves updating the regular expresssion
to capture any trailing data as the regex already keeps
spaces out of the name.

A unit test was converted to new macros to find out which
line it was failing at after updating regex.
src/detect-hostbits.c