[hurd,commited] hurd: Fix buffer overrun in __if_nametoindex
Joseph Myers
joseph@codesourcery.com
Tue Apr 3 19:27:00 GMT 2018
On Tue, 3 Apr 2018, Samuel Thibault wrote:
> and building with mainline GCC which reports it.
>
> * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Always end
> ifr.fr_name with a NUL caracter.
Are you sure this truncation is correct? The conclusion we reached for
the Linux version was to check for a too-big length and return an ENODEV
error in that case, instead.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list