dongjoon-hyun opened a new pull request, #2671:
URL: https://github.com/apache/orc/pull/2671

   ### What changes were proposed in this pull request?
   
   This PR makes the ORC C++ reader reject a compressed chunk whose length 
exceeds the configured
   compression block size, matching the Java reader.
   
   
https://github.com/apache/orc/blob/5d3cf1318b58416719e89169ae9d56f758311f7e/java/core/src/java/org/apache/orc/impl/InStream.java#L504-L507
   
   ### Why are the changes needed?
   
   The Java reader already performs this check in 
`InStream.CompressedStream.readHeader`, but the C++
   reader was missing it. This is a defense-in-depth hardening (not a CVE): the 
chunk length is already
   bounded to ~8MB by the 3-byte header, but the spec-mandated first check was 
absent on the C++ side.
   Well-formed files are unaffected.
   
   ### How was this patch tested?
   
   Pass the CIs with the newly added test case.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Fable 5


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

Reply via email to