Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1054)

Unified Diff: test/fuzzer/wasm-call.cc

Issue 2634943002: [wasm] Add the 'end' opcode at the end of the fuzzer input (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/fuzzer/wasm-code.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | test/fuzzer/wasm-code.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698