aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-12-26 21:52:50 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-12-26 21:52:50 +0100
commit82c9e6774f52bf4e299c7d5a5dff7530e104715a (patch)
tree9f205da354addc522bfc8a75f805f76d362693bb /executor
parent586a19e7ece21850ff9347ce78245bf19fe1cdcd (diff)
executor: fix max number of syscall args
De-hardcode max number (wrong) of syscall args.
Diffstat (limited to 'executor')
-rw-r--r--executor/executor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/executor.cc b/executor/executor.cc
index 54cbdbbe3..72f19105c 100644
--- a/executor/executor.cc
+++ b/executor/executor.cc
@@ -662,7 +662,7 @@ retry:
uint64 args[kMaxArgs] = {};
for (uint64 i = 0; i < num_args; i++)
args[i] = read_arg(&input_pos);
- for (uint64 i = num_args; i < 6; i++)
+ for (uint64 i = num_args; i < kMaxArgs; i++)
args[i] = 0;
thread_t* th = schedule_call(call_index++, call_num, colliding, copyout_index,
num_args, args, input_pos);