lidavidm commented on a change in pull request #11070:
URL: https://github.com/apache/arrow/pull/11070#discussion_r701854561
##########
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:
Thanks! I tried a few things but couldn't get it to trigger.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]