summaryrefslogtreecommitdiff
path: root/src/tools/fuzzing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/fuzzing.h')
-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 baaaf1b23..74c1159c8 100644
--- a/src/tools/fuzzing.h
+++ b/src/tools/fuzzing.h
@@ -409,7 +409,7 @@ private:
// the wasm, so they run everywhere
void addInvocations(Function* func) {
std::vector<Expression*> invocations;
- while (oneIn(2)) {
+ while (oneIn(2) && !finishedInput) {
std::vector<Expression*> args;
for (auto type : func->params) {
args.push_back(makeConst(type));