pjfanning opened a new pull request, #1566: URL: https://github.com/apache/poi/pull/1566
`VBAMacroReader` read decompressed VBA modules into memory with no upper bound. This applies a size limit to them as well. - The limit added in #1565 for the `vbaProject.bin` entry now also covers each VBA module after decompression, so the class has a single limit for this data. Because it no longer applies only to `vbaProject.bin`, it is renamed from `setMaxVbaProjectSize` / `getMaxVbaProjectSize` to `setMaxStreamSize` / `getMaxStreamSize` (default 100 MB, `@since 6.0.1`). The old names were never released. - The brute-force search for module source, used when a module offset is wrong, now decompresses only the first 20 bytes of each candidate to look for `Attribute`, instead of decompressing the rest of the stream for every candidate. It returns the same result as before. - The `setMaxStringLength` javadoc is corrected: it limits strings read from the VBA project metadata, not streams. - Tests for the limit on the normal module path and the brute-force path. 🤖 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]
