From cc74bf789f4aa10300e6625742e36cf1c004da3d Mon Sep 17 00:00:00 2001 From: AdamKorcz <44787359+AdamKorcz@users.noreply.github.com> Date: Sun, 12 May 2024 18:27:34 +0100 Subject: [PATCH] test: fix broken env fuzzer by initializing process Signed-off-by: Adam Korczynski PR-URL: https://github.com/nodejs/node/pull/51080 Reviewed-By: James M Snell Reviewed-By: Joyee Cheung --- test/fuzzers/fuzz_env.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/test/fuzzers/fuzz_env.cc b/test/fuzzers/fuzz_env.cc index 92af0bcb30e660..bace3051f8cecd 100644 --- a/test/fuzzers/fuzz_env.cc +++ b/test/fuzzers/fuzz_env.cc @@ -44,6 +44,7 @@ extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv) { platform.reset( new node::NodePlatform(kV8ThreadPoolSize, tracing_controller)); v8::V8::InitializePlatform(platform.get()); + cppgc::InitializeProcess(platform->GetPageAllocator()); v8::V8::Initialize(); return 0; }