From abce83d1cf6ccdb832af78c0e4b57e21fbf34169 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Thu, 25 Mar 2021 18:56:18 +0900 Subject: Explicitly call GC_gcollect() in fuzzer --- fuzz/fuzz-conv.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'fuzz') diff --git a/fuzz/fuzz-conv.c b/fuzz/fuzz-conv.c index ae6d31f..0790a63 100644 --- a/fuzz/fuzz-conv.c +++ b/fuzz/fuzz-conv.c @@ -45,6 +45,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size){ return 0; } + GC_disable(); + char *new_str1 = get_null_terminated(data, 20); data += 20; size -= 20; char *new_str2 = get_null_terminated(data, size); @@ -76,5 +78,9 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size){ free(new_str1); free(new_str2); + + GC_enable(); + GC_gcollect(); + return 0; } -- cgit v1.2.3