Jimmy Lu created ARROW-10932:
--------------------------------

             Summary: [C++] BinaryMemoTable::CopyOffsets access out-of-bound 
address when data is empty
                 Key: ARROW-10932
                 URL: https://issues.apache.org/jira/browse/ARROW-10932
             Project: Apache Arrow
          Issue Type: Bug
    Affects Versions: 2.0.0, 1.0.1, 1.0.0
            Reporter: Jimmy Lu


In 
[BinaryMemoTable::CopyOffsets|https://github.com/apache/arrow/blob/apache-arrow-2.0.0/cpp/src/arrow/util/hashing.h#L693],
 if there is no previous calls to insert data, {{offsets[start]}} will access 
out-of-bound address and cause undefined behavior.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to