diff options
Diffstat (limited to 'deps/v8/test/fuzzer/wasm-asmjs.cc')
-rw-r--r-- | deps/v8/test/fuzzer/wasm-asmjs.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/deps/v8/test/fuzzer/wasm-asmjs.cc b/deps/v8/test/fuzzer/wasm-asmjs.cc index d3341fa5b3..2f35ded7e3 100644 --- a/deps/v8/test/fuzzer/wasm-asmjs.cc +++ b/deps/v8/test/fuzzer/wasm-asmjs.cc @@ -17,6 +17,10 @@ #include "test/fuzzer/fuzzer-support.h" extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { + unsigned int max_mem_flag_value = v8::internal::FLAG_wasm_max_mem_pages; + unsigned int max_table_flag_value = v8::internal::FLAG_wasm_max_table_size; + v8::internal::FLAG_wasm_max_mem_pages = 32; + v8::internal::FLAG_wasm_max_table_size = 100; v8_fuzzer::FuzzerSupport* support = v8_fuzzer::FuzzerSupport::Get(); v8::Isolate* isolate = support->GetIsolate(); v8::internal::Isolate* i_isolate = @@ -35,5 +39,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { v8::internal::wasm::testing::CompileAndRunWasmModule( i_isolate, data, data + size, v8::internal::wasm::ModuleOrigin::kAsmJsOrigin); + v8::internal::FLAG_wasm_max_mem_pages = max_mem_flag_value; + v8::internal::FLAG_wasm_max_table_size = max_table_flag_value; return 0; } |