rose: fix CHECK_MULTIPATH_LOOKAROUND match difference bug

This commit is contained in:
Xu, Chi 2017-04-06 04:20:17 +08:00 committed by Matthew Barr
parent 97bbb62504
commit 2f9d063190

View File

@ -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);