linuxulator: fix stack memory disclosure in linux_ioctl_v4l

admbugs:	765
Reported by:	Vlad Tsyrklevich <vlad@tsyrklevich.net>
Reviewed by:	andrew
MFC after:	1 day
Security:	Kernel stack memory disclosure
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
emaste 2019-01-21 16:19:02 +00:00
parent cd5c57947c
commit 294f2877ce

View File

@ -2843,6 +2843,8 @@ linux_to_bsd_v4l_window(struct l_video_window *lvw, struct video_window *vw)
static int
bsd_to_linux_v4l_window(struct video_window *vw, struct l_video_window *lvw)
{
memset(lvw, 0, sizeof(*lvw));
lvw->x = vw->x;
lvw->y = vw->y;
lvw->width = vw->width;