From 82c9e6774f52bf4e299c7d5a5dff7530e104715a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 26 Dec 2018 21:52:50 +0100 Subject: executor: fix max number of syscall args De-hardcode max number (wrong) of syscall args. --- executor/executor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor/executor.cc') 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); -- cgit mrf-deployment