mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
Merge remote-tracking branch 'origin/GP-3186_ZeroSizeExportConsistency'
This commit is contained in:
commit
45d2e42bb4
5 changed files with 15 additions and 15 deletions
|
@ -725,7 +725,7 @@ class ConsistencyChecker {
|
|||
}
|
||||
|
||||
private boolean checkSubtable(SubtableSymbol sym) {
|
||||
int tablesize = 0;
|
||||
int tablesize = -1;
|
||||
int numconstruct = sym.getNumConstructors();
|
||||
Constructor ct;
|
||||
boolean testresult = true;
|
||||
|
@ -757,10 +757,10 @@ class ConsistencyChecker {
|
|||
}
|
||||
seennonemptyexport = true;
|
||||
int exsize = recoverSize(exportres.getSize(), ct);
|
||||
if (tablesize == 0) {
|
||||
if (tablesize == -1) {
|
||||
tablesize = exsize;
|
||||
}
|
||||
if ((exsize != 0) && (exsize != tablesize)) {
|
||||
if (exsize != tablesize) {
|
||||
compiler.reportError(ct.location, String.format(
|
||||
"Table '%s' has inconsistent export size; Constructor at %s is first conflict",
|
||||
sym.getName(), ct.location));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue