//printf("m %p s->pmatch %p s->pmatch_tail %p\n", m, s->pmatch, s->pmatch_tail);
break;
}
@ -1091,6 +1098,28 @@ end:
returnresult;
}
/** \test Parsing bug debugging at 2010-03-18 */
intSigParseTest06(void){
intresult=0;
Signature*sig=NULL;
DetectEngineCtx*de_ctx=DetectEngineCtxInit();
if(de_ctx==NULL)
gotoend;
sig=SigInit(de_ctx,"alert tcp any any -> any any (flow:to_server; content:\"GET\"; nocase; http_method; uricontent:\"/uri/\"; nocase; content:\"Host|3A| abc\"; nocase; sid:1; rev:1;)");
if(sig!=NULL){
result=1;
}else{
printf("signature failed to parse: ");
}
end:
if(sig!=NULL)SigFree(sig);
if(de_ctx!=NULL)DetectEngineCtxFree(de_ctx);
returnresult;
}
/** \test Direction operator validation (invalid) */