Kernel: Don't trust user-supplied bool in sys$stat

Found by fuzz-syscalls. Can be reproduced by running this in the Shell:
    $ syscall stat [ Desktop 7 buf 2 ]

Fixes #5316.
This commit is contained in:
Ben Wiederhake 2021-03-02 19:44:09 +01:00 committed by Andreas Kling
parent c73dfe5bf6
commit add94aebfa

View file

@ -432,7 +432,7 @@ struct SC_waitid_params {
struct SC_stat_params {
StringArgument path;
struct stat* statbuf;
bool follow_symlinks;
int follow_symlinks;
};
struct SC_ptrace_params {