Yibo Cai created ARROW-8728: ------------------------------- Summary: [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
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)