huong8373tt-beep opened a new pull request, #12025:
URL: https://github.com/apache/arrow-rs/pull/12025

   ## Rationale
   
   A malformed Parquet schema can declare more children than remain in the 
flattened schema list. The parser previously used that unvalidated count as a 
`Vec` capacity, allowing a corrupt footer to request a very large allocation.
   
   ## Changes
   
   - Validate `SchemaElement.num_children` against the remaining schema 
elements before allocating.
   - Add a regression test for an `i32::MAX` child count.
   
   ## Testing
   
   - `cargo fmt --all -- --check`
   - `cargo test -p parquet schema::types::tests --lib`
   - `cargo test -p parquet 
file::metadata::thrift::tests::row_group_count_exceeding_remaining_input_is_rejected
 --lib`
   
   Fixes #11954.
   
   ## AI disclosure
   
   Slai Agent Runtime performed the investigation, implementation, and test 
execution. The account owner authorized this contribution and is responsible 
for its content.


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