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
commit add94aebfa
Notes: sideshowbarker 2024-07-18 21:45:44 +09:00

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 {