alhudz opened a new pull request, #551: URL: https://github.com/apache/commons-imaging/pull/551
Allocator.array and arrayList compute the byte cost with a plain int multiply (`request * eltShallowByteSize`, `24 + request * 4`) before handing it to `check`, while every typed-array helper goes through the overflow-checked `check(int, int)`. A large count read from an image (e.g. an ICC `TagCount` in IccProfileParser) overflows int to a small or negative value and slips past the 1 GB limit, allocating well beyond it. Route both through `check(request, elementSize)` so the same multiplyExact guard applies. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
