cyb70289 commented on a change in pull request #11070: URL: https://github.com/apache/arrow/pull/11070#discussion_r701587031
########## File path: cpp/src/arrow/util/bit_util_test.cc ########## @@ -1569,6 +1569,12 @@ TEST(BitUtilTests, TestSetBitmap) { uint8_t false_byte = static_cast<uint8_t>(0); ASSERT_BYTES_EQ(bitmap, {false_byte, false_byte, false_byte, fill_byte}); } + { + // ASAN test against out of bound access (ARROW-13803) + uint8_t bitmap[1] = {fill_byte}; + BitUtil::ClearBitmap(bitmap, 0, 8); Review comment: Added a simple unit test. It causes ASAN error without this PR. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org