mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
fix the buffer overflow in dynamic_bloom_test
Summary: int -> uint64_t Test Plan: it think it is pretty obvious will run asan_check before committing Reviewers: igor, haobo Reviewed By: igor CC: leveldb Differential Revision: https://reviews.facebook.net/D17241
This commit is contained in:
@@ -69,7 +69,7 @@ static uint32_t NextNum(uint32_t num) {
|
||||
}
|
||||
|
||||
TEST(DynamicBloomTest, VaryingLengths) {
|
||||
char buffer[sizeof(int)];
|
||||
char buffer[sizeof(uint64_t)];
|
||||
|
||||
// Count number of filters that significantly exceed the false positive rate
|
||||
int mediocre_filters = 0;
|
||||
|
||||
Reference in New Issue
Block a user