jmestwa-coder opened a new pull request, #1103:
URL: https://github.com/apache/poi/pull/1103

   ## Summary
   
   Validate `PointCount` before allocating path arrays in `EmfPlusPath`.
   
   ## Problem
   
   * `PointCount` is read directly from EMF+ input.
   * The value is used as the length of both `pathPoints` and `pointTypes` 
arrays.
   * Invalid values can trigger allocation failures before any path data is 
processed.
   
   ## Fix
   
   * Add validation for `PointCount` using `IOUtils.safelyAllocateCheck(...)`.
   * Reject negative and oversized values before array allocation.
   * Align `EmfPlusPath` with the existing allocation-safety pattern used 
elsewhere in HEMF parsing.


-- 
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]

Reply via email to