mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 02:09:44 +02:00
Fix for infinite loop caused by RulePtrsubUndo
This commit is contained in:
parent
3cfa867ac3
commit
c4c7aa5dad
1 changed files with 3 additions and 0 deletions
|
@ -1726,6 +1726,9 @@ Datatype *TypeStruct::nearestArrayedComponentForward(int8 off,int8 *newoff,int8
|
||||||
int8 suboff;
|
int8 suboff;
|
||||||
Datatype *res = subtype->nearestArrayedComponentForward(remain, &suboff, elSize);
|
Datatype *res = subtype->nearestArrayedComponentForward(remain, &suboff, elSize);
|
||||||
if (res != (Datatype *)0) {
|
if (res != (Datatype *)0) {
|
||||||
|
int8 subdiff = diff + remain - suboff;
|
||||||
|
if (subdiff > 128)
|
||||||
|
break;
|
||||||
*newoff = -diff;
|
*newoff = -diff;
|
||||||
return subtype;
|
return subtype;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue