mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 08:56:40 +00:00
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:
parent
c73dfe5bf6
commit
add94aebfa
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue