From: Matthew Barr Date: Thu, 29 Jun 2017 06:26:56 +0000 (+1000) Subject: noodle: scan using the correct offsets X-Git-Tag: v4.6.0^2~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=166f5d8ba5a432bc64163057ba36f319bfc3695e;p=thirdparty%2Fvectorscan.git noodle: scan using the correct offsets --- diff --git a/src/hwlm/noodle_engine.c b/src/hwlm/noodle_engine.c index ba8d6913..cd1eb2d1 100644 --- a/src/hwlm/noodle_engine.c +++ b/src/hwlm/noodle_engine.c @@ -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); }