Skip to content

Commit

Permalink
DebugTools: Fix infinite loop regression in DisassemblyFunction::load
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoticgd committed Mar 10, 2024
1 parent 04001d7 commit 0c92e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcsx2/DebugTools/DisassemblyManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ void DisassemblyFunction::load()
u32 opcodeSequenceStart = funcPos;
while (funcPos < funcEnd)
{
if (funcPos == nextData.address.value)
if (funcPos == nextData.address.value && nextData.size > 0)
{
if (opcodeSequenceStart != funcPos)
addOpcodeSequence(opcodeSequenceStart,funcPos);
Expand Down

0 comments on commit 0c92e1f

Please sign in to comment.