]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
roseBlockHasEodWork: iter state on stack
authorJustin Viiret <justin.viiret@intel.com>
Mon, 4 Jan 2016 02:44:26 +0000 (13:44 +1100)
committerMatthew Barr <matthew.barr@intel.com>
Tue, 1 Mar 2016 00:20:36 +0000 (11:20 +1100)
src/rose/rose.h

index 49144988826e3e3f3c3bfc1e0d5a267baf7190c9..22df20d61cac0bb6d31e8b6a3504b78c416bb9dc 100644 (file)
@@ -67,9 +67,9 @@ int roseBlockHasEodWork(const struct RoseEngine *t,
     if (t->eodIterOffset) {
         u32 idx;
         const struct mmbit_sparse_iter *it = getByOffset(t, t->eodIterOffset);
-        struct mmbit_sparse_state *s = scratch->sparse_iter_state;
+        struct mmbit_sparse_state si_state[MAX_SPARSE_ITER_STATES];
         if (mmbit_sparse_iter_begin(getRoleState(state), t->rolesWithStateCount,
-                                    &idx, it, s) != MMB_INVALID) {
+                                    &idx, it, si_state) != MMB_INVALID) {
             DEBUG_PRINTF("eod iter has states on\n");
             return 1;
         }