aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor.cc
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2021-03-04 16:03:50 +0100
committerDmitry Vyukov <dvyukov@google.com>2021-03-04 19:44:53 +0100
commitb2bebe1217cea83046897e28cf1366b72c3ff329 (patch)
treec38c78e25e5eb162c0900a075e3ed42d8ac54069 /executor/executor.cc
parentc28569d10158d746caf5eb46e6000cc686af96c7 (diff)
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.
Diffstat (limited to 'executor/executor.cc')
-rw-r--r--executor/executor.cc2
1 files changed, 1 insertions, 1 deletions
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;