mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
Fix for switches in infinite loop decompiler bug
This commit is contained in:
parent
0a0b716266
commit
efabf89ea2
3 changed files with 10 additions and 5 deletions
|
@ -326,7 +326,7 @@ public:
|
|||
BlockWhileDo *newBlockWhileDo(FlowBlock *cond,FlowBlock *cl); ///< Build a new BlockWhileDo
|
||||
BlockDoWhile *newBlockDoWhile(FlowBlock *condcl); ///< Build a new BlockDoWhile
|
||||
BlockInfLoop *newBlockInfLoop(FlowBlock *body); ///< Build a new BlockInfLoop
|
||||
BlockSwitch *newBlockSwitch(const vector<FlowBlock *> &cs); ///< Build a new BlockSwitch
|
||||
BlockSwitch *newBlockSwitch(const vector<FlowBlock *> &cs,bool hasExit); ///< Build a new BlockSwitch
|
||||
|
||||
void orderBlocks(void) { ///< Sort blocks using the final ordering
|
||||
if (list.size()!=1) sort(list.begin(),list.end(),compareFinalOrder); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue