Prevent GC warnings of repeated allocation in fuzzer

This commit is contained in:
Tatsuya Kinoshita
2021-05-16 20:18:30 +09:00
parent 89e1f0715b
commit 23df23e4e5

View File

@@ -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);