mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
rose: fix CHECK_MULTIPATH_LOOKAROUND match difference bug
This commit is contained in:
parent
97bbb62504
commit
2f9d063190
@ -1192,9 +1192,10 @@ int roseMultipathLookaround(const struct RoseEngine *t,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 start_offset = 0;
|
s8 base_look_offset = *look;
|
||||||
do {
|
do {
|
||||||
s64a offset = base_offset + *look;
|
s64a offset = base_offset + *look;
|
||||||
|
u32 start_offset = (u32)(*look - base_look_offset);
|
||||||
DEBUG_PRINTF("start_mask[%u] = %x\n", start_offset,
|
DEBUG_PRINTF("start_mask[%u] = %x\n", start_offset,
|
||||||
start_mask[start_offset]);
|
start_mask[start_offset]);
|
||||||
path = start_mask[start_offset];
|
path = start_mask[start_offset];
|
||||||
@ -1202,7 +1203,6 @@ int roseMultipathLookaround(const struct RoseEngine *t,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
DEBUG_PRINTF("look=%d before history\n", *look);
|
DEBUG_PRINTF("look=%d before history\n", *look);
|
||||||
start_offset++;
|
|
||||||
look++;
|
look++;
|
||||||
reach += MULTI_REACH_BITVECTOR_LEN;
|
reach += MULTI_REACH_BITVECTOR_LEN;
|
||||||
} while (look < look_end);
|
} while (look < look_end);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user