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:
Ed Maste 2019-01-21 16:19:02 +00:00
parent 6b27f978f5
commit 4308a37410
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=343260

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;