GP-7071: Another OMF fix

This commit is contained in:
Ryan Kurtz
2026-08-10 06:43:01 -04:00
parent d08e8acff1
commit 19afcc1c49

View File

@@ -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;
}
/**