sharanggupta commented on PR #6: URL: https://github.com/apache/pdfbox-jbig2/pull/6#issuecomment-6704481874
Good catch — thanks for running Copilot over it. Fixed in 314543b: the cast now happens before the `+ 1` (`((long) grayMax + 1) * hdpWidth`), so `grayMax == Integer.MAX_VALUE` no longer overflows and the guard throws `InvalidHeaderValueException` as intended. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
