diff options
Diffstat (limited to 'executor/executor.h')
| -rw-r--r-- | executor/executor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/executor/executor.h b/executor/executor.h index 0e2c8c112..36da89a9a 100644 --- a/executor/executor.h +++ b/executor/executor.h @@ -635,6 +635,8 @@ void execute_call(thread_t* th) th->args[3], th->args[4], th->args[5], th->args[6], th->args[7], th->args[8]); th->reserrno = errno; + if (th->res == -1 && th->reserrno == 0) + th->reserrno = EINVAL; // our syz syscalls may misbehave th->cover_size = read_cover_size(th); th->fault_injected = false; |
