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

   ### What changes were proposed in this pull request?
   
   This PR caps the size of protobuf messages parsed from ORC file contents in 
the C++ reader, matching the Java reader.
   
   ### Why are the changes needed?
   
   The Java reader already caps protobuf message size at 1 GB, but the C++ 
reader parsed with no limit.
   
   
https://github.com/apache/orc/blob/7cc86ec686b4edcdb3c4d641ae362f101d4c8015/java/core/src/java/org/apache/orc/impl/InStream.java#L45
   
   
https://github.com/apache/orc/blob/7cc86ec686b4edcdb3c4d641ae362f101d4c8015/java/core/src/java/org/apache/orc/impl/InStream.java#L922
   
   `SetTotalBytesLimit` has the same mechanism with `InStream.setSizeLimit`.
   
   ### How was this patch tested?
   
   Pass the existing C++ tests (`orc-test`).
   
   ### 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