Remove Big Endian address size check

Removes a check specific to big endian that incorrectly checks
backwards from an address since the pointer is the start
of data and not the end (regardless of endianess).
This commit is contained in:
mumbel 2021-12-18 11:44:32 -06:00
parent fe7585b492
commit e5fb50845d

View file

@ -635,18 +635,6 @@ public class HighFunctionDBUtil {
return null;
}
Address addr = storage.getFirstVarnode().getAddress();
if (storage.size() != dt.getLength() && program.getMemory().isBigEndian()) {
// maintain address of lsb
long delta = storage.size() - dt.getLength();
try {
addr = addr.addNoWrap(delta);
}
catch (AddressOverflowException e) {
throw new InvalidInputException(
"Unable to resize global storage for " + dt.getName() + " at " + addr);
}
}
Listing listing = program.getListing();
Data d = listing.getDataAt(addr);
if (d != null && d.getDataType().isEquivalent(dt)) {