mcclellan: wide state fixes for sanitisers and accept state construction

This commit is contained in:
Hong, Yang A
2018-12-24 04:49:47 +08:00
committed by Chang, Harry
parent 6f3a0a323e
commit 805a550a0a
4 changed files with 25 additions and 21 deletions

View File

@@ -88,7 +88,7 @@ u16 doWide16(const char *wide_entry, const u8 **c_inout, const u8 *end,
const u8 *remap, const u16 *s, char *qstate, u16 *offset) {
// Internal relative offset after the last visit of the wide state.
if (qstate != NULL) { // stream mode
*offset = *(const u16 *)(qstate + 2);
*offset = unaligned_load_u16((const u16 *)(qstate + 2));
}
u8 successful = 0;