util: LLVM disassembler bugfix

Start/End is both inclusive; otherwise we may miss a trailing single-byte
instruction.

Change-Id: Ifb25593886864f7f92b08f13875a12e0a5a0d345
This commit is contained in:
Horst Schirmeier
2013-07-08 18:45:26 +02:00
parent 8622c1de12
commit 760353fb97

View File

@ -95,7 +95,7 @@ void LLVMDisassembler::disassemble()
// This symbol has the same address as the next symbol. Skip it.
continue;
for (Index = Start; Index < End; Index += Size) {
for (Index = Start; Index <= End; Index += Size) {
MCInst Inst;
if (disas->getInstruction(Inst, Size, memoryObject, Index,