hurd: Fix buffer overrun in __if_nametoindex
commit511ed56f2e792bea5e7145e1d5d5c93b9f47c41f
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 3 Apr 2018 16:06:15 +0000 (3 18:06 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 3 Apr 2018 16:06:15 +0000 (3 18:06 +0200)
tree42ac6995af1c95abf73c77e4811ee3271a5232e0
parente88ecbbfe836db5b6da809108759de4ca56be5e7
hurd: Fix buffer overrun in __if_nametoindex

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.
ChangeLog
sysdeps/mach/hurd/if_index.c