mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
GP-4102 Fix infinite loop thru RulePiecePathology
This commit is contained in:
parent
9b7efcb8e5
commit
5a7ad72476
1 changed files with 4 additions and 2 deletions
|
@ -5629,9 +5629,11 @@ bool FuncCallSpecs::setInputBytesConsumed(int4 slot,int4 val) const
|
|||
while(inputConsume.size() <= slot)
|
||||
inputConsume.push_back(0);
|
||||
int4 oldVal = inputConsume[slot];
|
||||
if (oldVal == 0 || val < oldVal)
|
||||
if (oldVal == 0 || val < oldVal) { // Only let the value get smaller
|
||||
inputConsume[slot] = val;
|
||||
return (oldVal != val);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/// \brief Prepend any extra parameters if a paramshift is required
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue