You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2020/05/07 12:29:00 UTC
[jira] [Resolved] (ARROW-8728) [C++] Bitmap operation may cause
buffer overflow
[ https://issues.apache.org/jira/browse/ARROW-8728?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antoine Pitrou resolved ARROW-8728.
-----------------------------------
Resolution: Fixed
> [C++] Bitmap operation may cause buffer overflow
> -------------------------------------------------
>
> Key: ARROW-8728
> URL: https://issues.apache.org/jira/browse/ARROW-8728
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Reporter: Yibo Cai
> Assignee: Yibo Cai
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.18.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Happen to find this issue when refining bitmap operation, [this code|https://github.com/apache/arrow/blob/9b75a60658327c39383bee48fa6e5827faf2ced3/cpp/src/arrow/util/bit_util.cc#L267] may overflow out buffer. Should be "(length + left_offset % 8)";
> Improve unit test to test large offset values can trigger the bug.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)