]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
noodle: scan using the correct offsets
authorMatthew Barr <matthew.barr@intel.com>
Thu, 29 Jun 2017 06:26:56 +0000 (16:26 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Mon, 21 Aug 2017 01:12:24 +0000 (11:12 +1000)
src/hwlm/noodle_engine.c

index ba8d69136bbcfdfbfd7ebeb7139a25a5e3be76b4..cd1eb2d15d7c0efca7e902828cad94837b66ec13 100644 (file)
@@ -174,8 +174,8 @@ hwlm_error_t scanSingleMain(const struct noodTable *n, const u8 *buf,
     }
 
     if (end - offset == CHUNKSIZE) {
-        rv = scanSingleUnaligned(n, buf, len, 0, noCase, caseMask, mask1, cbi,
-                                 offset, end);
+        rv = scanSingleUnaligned(n, buf, len, offset, noCase, caseMask, mask1,
+                                 cbi, offset, end);
         return rv;
     }
 
@@ -188,8 +188,8 @@ hwlm_error_t scanSingleMain(const struct noodTable *n, const u8 *buf,
     if (offset != s2Start) {
         // first scan out to the fast scan starting point
         DEBUG_PRINTF("stage 1: -> %zu\n", s2Start);
-        rv = scanSingleUnaligned(n, buf, len, 0, noCase, caseMask, mask1, cbi,
-                                 offset, s2Start);
+        rv = scanSingleUnaligned(n, buf, len, offset, noCase, caseMask, mask1,
+                                 cbi, offset, s2Start);
         RETURN_IF_TERMINATED(rv);
     }