noodle: scan using the correct offsets

This commit is contained in:
Matthew Barr 2017-06-29 16:26:56 +10:00
parent 1d041b12b7
commit 166f5d8ba5

View File

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