Plug uninitialized stack variable leak in sendfile(2).
Reported by: Ilja Van Sprundel <ivansprundel ioactive.com> Submitted by: Domagoj Stolfa <domagoj.stolfa gmail.com> MFC after: 1 week Security: uninitialized stack variable leak
This commit is contained in:
parent
9dc417c32b
commit
ef3266d58a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=322321
@ -945,6 +945,7 @@ sendfile(struct thread *td, struct sendfile_args *uap, int compat)
|
||||
if (uap->offset < 0)
|
||||
return (EINVAL);
|
||||
|
||||
sbytes = 0;
|
||||
hdr_uio = trl_uio = NULL;
|
||||
|
||||
if (uap->hdtr != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user