Skip to content

Ghidra is a software reverse engineering (SRE) framework

iteration tweak

caheckmana45e0719b5df
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/rangeutil.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/rangeutil.cc
index e1a4b3ebb0..ca9d9f4bf3 100644
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/rangeutil.cc
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/rangeutil.cc
@@ -1527,8 +1527,10 @@ void ValueSet::doWidening(const CircleRange &newRange)
void ValueSet::looped(void)
{
- if (count > 2)
+ if (count >= 2)
count = 2; // Reset to point just after any widening
+ else
+ count = 0; // Delay widening, if we haven't performed it yet
}
/// Examine the input value sets that determine \b this set and decide if it