x86: instruction length must be <= 15

This commit is contained in:
Nguyen Anh Quynh 2014-12-17 23:53:32 +08:00
parent a3d689de51
commit 3539595183
1 changed files with 3 additions and 0 deletions

View File

@ -2049,6 +2049,9 @@ int decodeInstruction(struct InternalInstruction* insn,
insn->length = (size_t)(insn->readerCursor - insn->startLocation);
if (insn->length > 15)
return -1;
// dbgprintf(insn, "Read from 0x%llx to 0x%llx: length %zu",
// startLoc, insn->readerCursor, insn->length);