[PR] HemfPlusPath: validate PointCount before array allocati on [poi]

jmestwa-coder (via GitHub) <[email protected]>
Newsgroups gmane.comp.jakarta.poi.devel
Message-ID <[email protected]>
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]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.