You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2020/12/16 10:13:00 UTC

[jira] [Resolved] (ARROW-10932) [C++] BinaryMemoTable::CopyOffsets access out-of-bound address when data is empty

     [ https://issues.apache.org/jira/browse/ARROW-10932?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antoine Pitrou resolved ARROW-10932.
------------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

Issue resolved by pull request 8933
[https://github.com/apache/arrow/pull/8933]

> [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: 1.0.0, 1.0.1, 2.0.0
>            Reporter: Jimmy Lu
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.0.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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.
> Proposed fix: https://github.com/apache/arrow/pull/8933



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