diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-02-10 10:14:43 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-02-10 10:51:25 +0100 |
| commit | 6805e9052321daf3b1c406698e0aea2e2789da0f (patch) | |
| tree | 627a34a6b2ed670d006d4e867fc1590f20d16d60 | |
| parent | b97dee873b419c5386b2742530c98a18dae36e2b (diff) | |
executor: increase input buffer size
I bumped input buffer size on Go side in:
a2af37f0 prog: increase encodingexec buffer size
But I forgot to increase the size on the executor side.
Do this and add comments re keeping them in sync.
| -rw-r--r-- | executor/executor.cc | 2 | ||||
| -rw-r--r-- | prog/encodingexec.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/executor/executor.cc b/executor/executor.cc index c0e332190..f0d32dcea 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -132,8 +132,8 @@ static int flag_fault_nth; #define SYZ_EXECUTOR 1 #include "common.h" +const int kMaxInput = 4 << 20; // keep in sync with prog.ExecBufferSize const int kMaxCommands = 1000; -const int kMaxInput = 2 << 20; const uint64 instr_eof = -1; const uint64 instr_copyin = -2; diff --git a/prog/encodingexec.go b/prog/encodingexec.go index abcfeffba..b5c410287 100644 --- a/prog/encodingexec.go +++ b/prog/encodingexec.go @@ -49,7 +49,7 @@ const ( ) const ( - ExecBufferSize = 4 << 20 + ExecBufferSize = 4 << 20 // keep in sync with kMaxInput in executor.cc ExecNoCopyout = ^uint64(0) ) |
