This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [hurd,commited] hurd: Make __if_nametoindex return ENODEV if ifname is too long
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 03 Apr 2018 23:24:54 +0200
- Subject: Re: [hurd,commited] hurd: Make __if_nametoindex return ENODEV if ifname is too long
- References: <20180403211458.12717-1-samuel.thibault@ens-lyon.org>
On Apr 03 2018, Samuel Thibault <samuel.thibault@ens-lyon.org> wrote:
> + strncpy (ifr.ifr_name, ifname, IFNAMESIZ - 1);
That leaves ifr.ifr_name[IFNAMESIZ - 1] uninitialized.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."