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
@ -945,6 +945,7 @@ sendfile(struct thread *td, struct sendfile_args *uap, int compat)
|
|||||||
if (uap->offset < 0)
|
if (uap->offset < 0)
|
||||||
return (EINVAL);
|
return (EINVAL);
|
||||||
|
|
||||||
|
sbytes = 0;
|
||||||
hdr_uio = trl_uio = NULL;
|
hdr_uio = trl_uio = NULL;
|
||||||
|
|
||||||
if (uap->hdtr != NULL) {
|
if (uap->hdtr != NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user