From 23df23e4e596b8217ad6a176bac846cae1b87fa4 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Sun, 16 May 2021 20:18:30 +0900 Subject: [PATCH] Prevent GC warnings of repeated allocation in fuzzer --- fuzz/fuzz-conv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fuzz/fuzz-conv.c b/fuzz/fuzz-conv.c index 0790a63..9b5c261 100644 --- a/fuzz/fuzz-conv.c +++ b/fuzz/fuzz-conv.c @@ -25,6 +25,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size){ static int init_done = 0; if (!init_done) { + setenv("GC_LARGE_ALLOC_WARN_INTERVAL", "30000", 1); GC_INIT(); #if (GC_VERSION_MAJOR>7) || ((GC_VERSION_MAJOR==7) && (GC_VERSION_MINOR>=2)) GC_set_oom_fn(die_oom);