You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by "jmestwa-coder (via GitHub)" <gi...@apache.org> on 2026/06/03 11:48:54 UTC
[PR] Apply allocation bounds checks to EMF+ path and brush element counts [poi]
jmestwa-coder opened a new pull request, #1104:
URL: https://github.com/apache/poi/pull/1104
## Summary
EMF+ path and brush records allocate arrays directly from count fields read from the input stream.
This change applies the existing POI allocation safety checks before the following count-driven allocations:
- Path point arrays in `HemfPlusPath`
- Surrounding color arrays in `HemfPlusBrush`
- Boundary point arrays in `HemfPlusBrush`
- Position arrays in `HemfPlusBrush`
Invalid or excessively large counts are now rejected with `RecordFormatException` instead of attempting oversized allocations.
## Tests
Added regression tests covering:
- `Integer.MAX_VALUE` counts
- Negative counts (`0xFFFFFFFF`)
These tests verify that malformed inputs are rejected through the standard allocation validation path.
--
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: dev-unsubscribe@poi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
Re: [PR] Apply allocation bounds checks to EMF+ path and brush element counts [poi]
Posted by "pjfanning (via GitHub)" <gi...@apache.org>.
pjfanning merged PR #1104:
URL: https://github.com/apache/poi/pull/1104
--
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: dev-unsubscribe@poi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org