mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Crash when custom disassembler returns no bytes
This commit is contained in:
@@ -46,7 +46,8 @@ namespace hex::plugin::disasm {
|
||||
|
||||
for (u8 byte : instruction.bytes)
|
||||
disassembly.bytes += hex::format("{0:02X} ", byte);
|
||||
disassembly.bytes.pop_back();
|
||||
if (!disassembly.bytes.empty())
|
||||
disassembly.bytes.pop_back();
|
||||
|
||||
return disassembly;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user