1
0
mirror of synced 2025-02-20 04:01:01 +01:00

fix: crash when disassembler encounters invalid instructions (#2116)

This commit is contained in:
Justus Garbe 2025-02-16 00:52:30 +01:00 committed by GitHub
parent 54f3bc0262
commit 6828c7c077
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,6 +80,9 @@ namespace hex::plugin::disasm {
disassembly.push_back(instruction.value());
if (instruction->size == 0 || instruction->size > code.size())
break;
code = code.subspan(instruction->size);
instructionDataAddress += instruction->size;
instructionLoadAddress += instruction->size;