summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tools/fuzzing.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/fuzzing.h b/src/tools/fuzzing.h
index e21c6a14d..96dd43826 100644
--- a/src/tools/fuzzing.h
+++ b/src/tools/fuzzing.h
@@ -596,7 +596,7 @@ private:
wasm.addExport(export_);
}
// add some to the table
- while (oneIn(3)) {
+ while (oneIn(3) && !finishedInput) {
wasm.table.segments[0].data.push_back(func->name);
}
// cleanup