pjfanning opened a new pull request, #1565: URL: https://github.com/apache/poi/pull/1565
\`VBAMacroReader\` reads the \`vbaProject.bin\` entry of an OOXML file (.xlsm, .docm, .pptm, ...) fully into memory with no upper bound. This caps the read at a configurable limit, in line with other size limits in POI such as \`XWPFPictureData.setMaxImageSize\` and \`VBAMacroReader.setMaxStringLength\`. - New `VBAMacroReader.setMaxVbaProjectSize(int)` / `getMaxVbaProjectSize()` (default 100 MB, `@since 6.1.0`) - An entry over the limit fails with a `RecordFormatException` instead of being buffered - Tests for the limit on both the `File` and `InputStream` constructors 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
