Michael Smith created IMPALA-15377:
--------------------------------------

             Summary: ASAN heap-buffer-overflow in ParquetDeltaEncoder for 
empty pages
                 Key: IMPALA-15377
                 URL: https://issues.apache.org/jira/browse/IMPALA-15377
             Project: IMPALA
          Issue Type: Bug
          Components: Backend
            Reporter: Michael Smith


{{ParquetDeltaEncoder::FinalizePage()}} unconditionally writes a page header 
even when zero values have been written (\{{total_value_count_ == 0}}), using 
an uninitialized {{first_value_}} and requiring more space than 
{{WorstCaseOutputSize(0) }}(which returns 0) reserves. This caused a 
heap-buffer-overflow write in BitWriter::PutAligned via WriteHeader, hit by 
ParquetDeltaLengthByteArrayDecoderTest.EmptyPage on ASAN builds with newer 
Clang versions.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to