reject pcre modifiers U with B

remotes/origin/HEAD
Eileen Donlon 14 years ago committed by Victor Julien
parent 195eb42d4e
commit 4327aaf68a

@ -844,6 +844,10 @@ DetectPcreData *DetectPcreParse (char *regexstr)
SCLogError(SC_ERR_INVALID_SIGNATURE, "regex modifier 'U' inconsistent with 'I'"); SCLogError(SC_ERR_INVALID_SIGNATURE, "regex modifier 'U' inconsistent with 'I'");
goto error; 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; pd->flags |= DETECT_PCRE_URI;
break; break;
case 'H': /* snort's option */ case 'H': /* snort's option */

Loading…
Cancel
Save