|
|
|
@ -1316,10 +1316,6 @@ uint32_t SCACGfbsSearch(MpmCtx *mpm_ctx, MpmThreadCtx *mpm_thread_ctx,
|
|
|
|
|
temp_state = SC_AC_GFBS_FAIL;
|
|
|
|
|
} else {
|
|
|
|
|
buf_local = u8_tolower(buf[i]);
|
|
|
|
|
//if (state == 0) {
|
|
|
|
|
// ascii_codes = goto_table_mod_pointers[state] + 2;
|
|
|
|
|
// temp_state = ((ascii_codes + no_of_entries))[buf_local];
|
|
|
|
|
//} else {
|
|
|
|
|
ascii_codes = (uint8_t *)(goto_table_mod_pointers[state & 0x7FFF] + 2);
|
|
|
|
|
int low = 0;
|
|
|
|
|
int high = no_of_entries;
|
|
|
|
@ -1336,7 +1332,6 @@ uint32_t SCACGfbsSearch(MpmCtx *mpm_ctx, MpmThreadCtx *mpm_thread_ctx,
|
|
|
|
|
high = mid - 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
while (temp_state == SC_AC_GFBS_FAIL) {
|
|
|
|
@ -1449,10 +1444,6 @@ uint32_t SCACGfbsSearch(MpmCtx *mpm_ctx, MpmThreadCtx *mpm_thread_ctx,
|
|
|
|
|
temp_state = SC_AC_GFBS_FAIL;
|
|
|
|
|
} else {
|
|
|
|
|
buf_local = u8_tolower(buf[i]);
|
|
|
|
|
//if (state == 0) {
|
|
|
|
|
// ascii_codes = goto_table_mod_pointers[state] + 2;
|
|
|
|
|
// temp_state = ((ascii_codes + no_of_entries))[buf_local];
|
|
|
|
|
//} else {
|
|
|
|
|
ascii_codes = (uint8_t *)(goto_table_mod_pointers[state & 0x00FFFFFF] + 2);
|
|
|
|
|
int low = 0;
|
|
|
|
|
int high = no_of_entries;
|
|
|
|
@ -1469,7 +1460,6 @@ uint32_t SCACGfbsSearch(MpmCtx *mpm_ctx, MpmThreadCtx *mpm_thread_ctx,
|
|
|
|
|
high = mid - 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
while (temp_state == SC_AC_GFBS_FAIL) {
|
|
|
|
|