GP-5833 Fixed possible inifinite loop during constant analysis on mips

platforms.
This commit is contained in:
emteere 2025-07-17 20:31:08 +00:00
parent 48f1bf133f
commit 8839bd365e

View file

@ -435,6 +435,11 @@ public class ConstantPropagationAnalyzer extends AbstractAnalyzer {
// now get rid of all the instructions that were analyzed // now get rid of all the instructions that were analyzed
todoSet.delete(resultSet); todoSet.delete(resultSet);
} }
// make sure todoSet removes start address if no results
if (resultSet == null || resultSet.isEmpty()) {
todoSet.delete(start,start);
}
} }
} }