mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-28 14:55:33 +08:00
Merge remote-tracking branch 'origin/GP-5094_James_endianness_in_variable_storage' into patch
This commit is contained in:
+11
-3
@@ -243,9 +243,17 @@ public class VariableStorage implements Comparable<VariableStorage> {
|
|||||||
stackOffset + ", size=" + varnode.getSize());
|
stackOffset + ", size=" + varnode.getSize());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (i < (varnodes.length - 1) && !isRegister) {
|
if (programArch.getLanguage().isBigEndian()) {
|
||||||
throw new InvalidInputException(
|
if (i < (varnodes.length - 1) && !isRegister) {
|
||||||
"Compound storage must use registers except for last varnode");
|
throw new InvalidInputException(
|
||||||
|
"Compound storage must use registers except for least significant varnode");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (i > 0 && !isRegister) {
|
||||||
|
throw new InvalidInputException(
|
||||||
|
"Compound storage must use registers except for most significant varnode");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
size += varnode.getSize();
|
size += varnode.getSize();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user