K-ballo opened a new issue, #49928:
URL: https://github.com/apache/arrow/issues/49928

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   In Arrow 24.0.0, `parquet::TypedColumnWriterImpl::UpdateLevelHistogram` can 
construct a `std::span` from a null pointer, causing immediate UB and crashes 
in libstdc++:
   
   
https://github.com/apache/arrow/blob/9a0afd9e9545444b492237cc9db7eb4549ce09f5/cpp/src/parquet/column_writer.cc#L1810-L1825
   
   Seen with `rep_levels == nullptr`, `num_levels == 3`, and `max_level == 0`.
   Note the `max_level == 0` guard inside the lambda is too late to protect 
from UB while constructing the `std::span` argument.
   
   ### Component(s)
   
   Parquet


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