diff options
author | Jack Lloyd <[email protected]> | 2019-02-21 10:50:56 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-02-21 10:50:56 -0500 |
commit | d5be1fbb4ef223c989d2ffd3f26e38be8f0695cd (patch) | |
tree | 1d17789e573995e5374a0ec3e10a0b878ef6aab2 /src/fuzzer/mem_pool.cpp | |
parent | 86126a29a356cfe7d9132ddcfba376ccc460d8d3 (diff) |
In fuzzer remove debug print and check return value of posix_memalign
Diffstat (limited to 'src/fuzzer/mem_pool.cpp')
-rw-r--r-- | src/fuzzer/mem_pool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fuzzer/mem_pool.cpp b/src/fuzzer/mem_pool.cpp index 0bd35031d..722746288 100644 --- a/src/fuzzer/mem_pool.cpp +++ b/src/fuzzer/mem_pool.cpp @@ -64,11 +64,11 @@ std::vector<RawPage> allocate_raw_pages(size_t count, size_t page_size) { void* ptr = nullptr; - ::posix_memalign(&ptr, page_size, page_size); + int rc = ::posix_memalign(&ptr, page_size, page_size); + FUZZER_ASSERT_EQUAL(rc, 0); if(ptr) { - fprintf(stderr, "%p\n", ptr); pages.push_back(RawPage(ptr)); } } |