mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Changes the check script to detect segfaults
This commit is contained in:
committed by
Felipe Zimmerle
parent
ff65d618e4
commit
a88dc8efa9
@@ -144,10 +144,9 @@ void perform_unit_test(ModSecurityTest<UnitTest> *test, UnitTest *t,
|
||||
}
|
||||
|
||||
if (t->type == "op") {
|
||||
Operator *op = Operator::instantiate("\"@" + t->name + \
|
||||
" " + t->param + "\"");
|
||||
Operator *op = Operator::instantiate(t->name, t->param);
|
||||
op->init(t->filename, &error);
|
||||
int ret = op->evaluate(NULL, t->input);
|
||||
int ret = op->evaluate(NULL, NULL, t->input, NULL);
|
||||
t->obtained = ret;
|
||||
if (ret != t->ret) {
|
||||
res->push_back(t);
|
||||
|
Reference in New Issue
Block a user