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_termio
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
4308a37410
commit
9866e7bbae
1 changed files with 1 additions and 0 deletions
|
|
@ -686,6 +686,7 @@ bsd_to_linux_termio(struct termios *bios, struct linux_termio *lio)
|
|||
{
|
||||
struct linux_termios lios;
|
||||
|
||||
memset(lio, 0, sizeof(*lio));
|
||||
bsd_to_linux_termios(bios, &lios);
|
||||
lio->c_iflag = lios.c_iflag;
|
||||
lio->c_oflag = lios.c_oflag;
|
||||
|
|
|
|||
Loading…
Reference in a new issue