mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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:
parent
6b27f978f5
commit
4308a37410
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue