commit | 8b5fbeea993f63d15d88f58693eaf0bb207907ef | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@gentoo.org> | Tue Oct 21 08:34:08 2014 -0400 |
committer | Dmitry V. Levin <ldv@altlinux.org> | Fri Oct 31 15:17:31 2014 +0000 |
tree | 7248f6f252040c2c3469ada00cbdb211e60b20d9 | |
parent | 22e34b98578b8fab6be7fb608579e4fc601b2ed0 [diff] |
sock: fix decoding of struct ifreq.ifr_name The ifr name fields of the ifreq structure might not be NUL terminated. If the user makes an ioctl call where they aren't, then strace ends up reading random content from its own stack. Limit the printf lengths. * sock.c (sock_ioctl): Add explicit length limits to ifr_name printfs.