GP-0 corrected Data pointer stacking test failures

This commit is contained in:
ghidra1 2024-01-30 09:02:08 -05:00
parent 60fc7a35c2
commit b3c19de3dd
2 changed files with 14 additions and 12 deletions

View file

@ -166,6 +166,10 @@ public final class DataUtilities {
Reference extRef = null;
if (!isParentData(data, addr)) {
if (!stackPointers && isDataClearingDenied(existingType, clearMode)) {
throw new CodeUnitInsertionException("Could not create Data at address " + addr);
}
existingLength = data.getLength();
if (data.isDefined()) {
@ -185,10 +189,6 @@ public final class DataUtilities {
}
}
if (!stackPointers && isDataClearingDenied(existingType, clearMode)) {
throw new CodeUnitInsertionException("Could not create Data at address " + addr);
}
// TODO: This can probably be eliminated
// Check for external reference on pointer
extRef =