Profiler: Stop disassembly on invalid instructions
This commit is contained in:
parent
134f43ba12
commit
1533123263
Notes:
sideshowbarker
2024-07-18 01:05:20 +09:00
Author: https://github.com/Hendiadyoin1 Commit: https://github.com/SerenityOS/serenity/commit/15331232637 Pull-request: https://github.com/SerenityOS/serenity/pull/10629 Reviewed-by: https://github.com/IdanHo
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ DisassemblyModel::DisassemblyModel(Profile& profile, ProfileNode& node)
|
|||
break;
|
||||
|
||||
auto insn = disassembler.next();
|
||||
if (!insn.has_value())
|
||||
if (!insn.has_value() || !insn.value().is_valid())
|
||||
break;
|
||||
FlatPtr address_in_profiled_program = node.address() + offset_into_symbol;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue