mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-7071: Another OMF fix
This commit is contained in:
@@ -148,7 +148,11 @@ public class OmfIteratedData extends OmfData {
|
||||
length += block.getLength();
|
||||
}
|
||||
}
|
||||
return length * repeatCount;
|
||||
long total = (long) length * (long) repeatCount;
|
||||
if (total < 0 || total > OmfIteratedData.MAX_ITERATED_FILL) {
|
||||
throw new IllegalArgumentException("Iterated block length out of range: " + total);
|
||||
}
|
||||
return (int) total;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user