mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
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:
parent
fe7585b492
commit
e5fb50845d
1 changed files with 0 additions and 12 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue