]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
tamarama: check for match halt in _Q2 as well
authorJustin Viiret <justin.viiret@intel.com>
Sun, 14 Aug 2016 23:58:06 +0000 (09:58 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Mon, 22 Aug 2016 06:04:27 +0000 (16:04 +1000)
src/nfa/tamarama.c

index 4286a67e5482f2dd471afae4a8a8987f92dc1972..b5f90e85e0c1e572b2b888ecd22533ced91983d5 100644 (file)
@@ -431,6 +431,9 @@ char nfaExecTamarama0_Q2(const struct NFA *n,
         rv = nfaQueueExec2_raw(q1.nfa, &q1, end);
         q->report_current = q1.report_current;
         copy = 1;
+        if (can_stop_matching(q->scratch)) {
+            break;
+        }
     }
     if (copy) {
         copyBack(t, q, &q1);