]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
reject pcre modifiers U with B
authorEileen Donlon <emdonlo@gmail.com>
Wed, 4 Apr 2012 14:43:01 +0000 (10:43 -0400)
committerVictor Julien <victor@inliniac.net>
Tue, 10 Apr 2012 15:57:58 +0000 (17:57 +0200)
src/detect-pcre.c

index 4a6a7469fd581ecbe515d364aaf75c21ea4dbcbe..1e88c35a589ca0e11b44d4c3e49f9c92ec4ca3e1 100644 (file)
@@ -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 */