Index: test/fuzzer/wasm-call.cc |
diff --git a/test/fuzzer/wasm-call.cc b/test/fuzzer/wasm-call.cc |
index 32a8ad97d7d69b9daf8cc7c877a030dc30e335db..e18575c5d6f5b522e62a4cb47d0c38ed84fbcdaa 100644 |
--- a/test/fuzzer/wasm-call.cc |
+++ b/test/fuzzer/wasm-call.cc |
@@ -114,6 +114,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { |
builder.AddFunction(sig_builder.Build()); |
uint32_t code_size = static_cast<uint32_t>(size / num_functions); |
f->EmitCode(data, code_size); |
+ uint8_t end_opcode = kExprEnd; |
+ f->EmitCode(&end_opcode, 1); |
data += code_size; |
size -= code_size; |
if (fun == 0) { |