From f02ce0c6514d9695ea5991df123c02cb226cb4c9 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Mon, 8 Jun 2015 11:28:40 -0700 Subject: [PATCH] Fix ASAN errors in c_test Summary: key_sizes claims that 3rd key is of length 8, but it's really only 3. This diff makes it length 8. Test Plan: asan c_test works again. Reviewers: sdong, yhchiang Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D39699 --- db/c_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/c_test.c b/db/c_test.c index c839d0797..2669b03ad 100644 --- a/db/c_test.c +++ b/db/c_test.c @@ -823,7 +823,7 @@ int main(int argc, char** argv) { CheckGetCF(db, roptions, handles[1], "box", "c"); rocksdb_writebatch_destroy(wb); - const char* keys[3] = { "box", "box", "bar" }; + const char* keys[3] = { "box", "box", "barfooxx" }; const rocksdb_column_family_handle_t* get_handles[3] = { handles[0], handles[1], handles[1] }; const size_t keys_sizes[3] = { 3, 3, 8 }; char* vals[3];