mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-08-17 15:00:51 +08:00
Merge remote-tracking branch 'origin/patch'
This commit is contained in:
+5
-1
@@ -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