Skip to content

Commit

Permalink
Fix double traversal of HLIL switch case contents when not in AST form
Browse files Browse the repository at this point in the history
  • Loading branch information
D0ntPanic committed Jun 19, 2024
1 parent da698e7 commit 7518e76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion highlevelilinstruction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,8 @@ void HighLevelILInstruction::CollectSubExprs(stack<size_t>& toProcess) const
toProcess.push(GetConditionExpr<HLIL_SWITCH>().exprIndex);
break;
case HLIL_CASE:
toProcess.push(GetTrueExpr<HLIL_CASE>().exprIndex);
if (ast)
toProcess.push(GetTrueExpr<HLIL_CASE>().exprIndex);
exprs = GetValueExprs<HLIL_CASE>();
for (auto i = exprs.rbegin(); i != exprs.rend(); ++i)
toProcess.push(i->exprIndex);
Expand Down

0 comments on commit 7518e76

Please sign in to comment.