We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72070f4 commit 81f2817Copy full SHA for 81f2817
src/rules/events.c
@@ -609,10 +609,10 @@ static unsigned int reduceExpressionSequence(ruleset *tree,
609
}
610
611
612
- if ((operator == OP_AND && !targetProperty->value.b) ||
613
- (operator == OP_OR && targetProperty->value.b)) {
614
- while (currentExpression->operator != OP_END) {
615
- ++*i;
+ if ((((operator == OP_AND) && !targetProperty->value.b) ||
+ ((operator == OP_OR) && targetProperty->value.b))
+ && (*i < exprs->length)) {
+ while ((currentExpression->operator != OP_END) && (++*i < exprs->length)) {
616
currentExpression = &exprs->expressions[*i];
617
618
return RULES_OK;
0 commit comments