aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2021-05-05 08:30:00 -0400
committerJack Lloyd <[email protected]>2021-05-05 08:30:00 -0400
commitbb9ef685d13fd0e979acc0c3943ff7eee4a5df40 (patch)
treeed9e51c0afb4de93f0313eb1e288604dc526e37b
parentda1dd0fe8a525d2c706b47518183c8df2fbd1674 (diff)
Avoid early return from mem_pool fuzzer
-rw-r--r--src/fuzzer/mem_pool.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/fuzzer/mem_pool.cpp b/src/fuzzer/mem_pool.cpp
index 722746288..5751aac3c 100644
--- a/src/fuzzer/mem_pool.cpp
+++ b/src/fuzzer/mem_pool.cpp
@@ -108,8 +108,6 @@ void fuzz(const uint8_t in[], size_t in_len)
in_len -= 1;
}
- //printf("%d %d\n", op, idx);
-
if(op == 0)
{
const size_t plen = idx + 1; // ensure non-zero
@@ -174,7 +172,7 @@ void fuzz(const uint8_t in[], size_t in_len)
else if(op == 1)
{
if(ptrs.empty())
- return;
+ continue;
size_t which_ptr = idx % ptrs.size();