mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
GP-4257: Fix NPE in TraceDisassembleCommand.
This commit is contained in:
parent
25f07a2a05
commit
c1c8cfb237
1 changed files with 3 additions and 0 deletions
|
@ -79,6 +79,9 @@ public class TraceDisassembleCommand extends TypedBackgroundCommand<TraceProgram
|
|||
public boolean applyToTyped(TraceProgramView view, TaskMonitor monitor) {
|
||||
Disassembler disassembler = getDisassembler(view, monitor);
|
||||
MemBuffer buffer = getBuffer(view);
|
||||
if (buffer == null) {
|
||||
return true; // Memory space does not exist. Just go silently.
|
||||
}
|
||||
int limit = computeLimit();
|
||||
// TODO: limit is actually instruction count, not byte count :'(
|
||||
InstructionBlock block = disassembler.pseudoDisassembleBlock(buffer, initialContext, limit);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue