mapleFU commented on issue #46988: URL: https://github.com/apache/arrow/issues/46988#issuecomment-3034299145
Can be fixed by the code below, I'll push a fix later when I back home ```diff --- a/cpp/src/parquet/decoder.cc +++ b/cpp/src/parquet/decoder.cc @@ -659,7 +659,10 @@ inline int PlainDecoder<FLBAType>::DecodeArrow( typename EncodingTraits<FLBAType>::Accumulator* builder) { const int byte_width = this->type_length_; const int values_decoded = num_values - null_count; - if (ARROW_PREDICT_FALSE(len_ < byte_width * values_decoded)) { + if (int decode_bytes; + ARROW_PREDICT_FALSE(::arrow::internal::MultiplyWithOverflow( + byte_width, values_decoded, &decode_bytes) || + len_ < decode_bytes)) { ParquetException::EofException(); } ``` -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org