From: Eileen Donlon Date: Wed, 4 Apr 2012 14:43:01 +0000 (-0400) Subject: reject pcre modifiers U with B X-Git-Tag: suricata-1.3beta2~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4327aaf68ac84016f0e4884d3f08a5e19377ad4b;p=thirdparty%2Fsuricata.git reject pcre modifiers U with B --- diff --git a/src/detect-pcre.c b/src/detect-pcre.c index 4a6a7469fd..1e88c35a58 100644 --- a/src/detect-pcre.c +++ b/src/detect-pcre.c @@ -844,6 +844,10 @@ DetectPcreData *DetectPcreParse (char *regexstr) SCLogError(SC_ERR_INVALID_SIGNATURE, "regex modifier 'U' inconsistent with 'I'"); goto error; } + if (pd->flags & DETECT_PCRE_RAWBYTES) { + SCLogError(SC_ERR_INVALID_SIGNATURE, "regex modifier 'U' inconsistent with 'B'"); + goto error; + } pd->flags |= DETECT_PCRE_URI; break; case 'H': /* snort's option */