metsw24-max opened a new pull request, #1098: URL: https://github.com/apache/poi/pull/1098
EmfPlusDrawDriverString.init reads a 32-bit glyph count from untrusted EMF+ bytes and allocates glyphCount*2 bytes. The product is computed in int, so a count of 0x40000000 wraps negative and slips past the MAX_OBJECT_SIZE cap in IOUtils.toByteArray, surfacing a raw IllegalStateException instead of a RecordFormatException. Using glyphCount*2L routes through the long toByteArray overload so the cap fires first. -- 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]
