From b2bebe1217cea83046897e28cf1366b72c3ff329 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 4 Mar 2021 16:03:50 +0100 Subject: prog: detect copyout overflow Detect the case when a program requires more copyout than executor can handle. Curretnly these result in: "SYZFAIL: command refers to bad result" failures. Now syz-fuzzer should ignore them. --- executor/executor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor') diff --git a/executor/executor.cc b/executor/executor.cc index 0dec5e166..f98c6b219 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -165,7 +165,7 @@ static uint64 slowdown_scale; #include "common.h" const int kMaxInput = 4 << 20; // keep in sync with prog.ExecBufferSize -const int kMaxCommands = 1000; +const int kMaxCommands = 1000; // prog package knows about this constant (prog.execMaxCommands) const uint64 instr_eof = -1; const uint64 instr_copyin = -2; -- cgit mrf-deployment