This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [hurd,commited] hurd: Make __if_nametoindex return ENODEV if ifname is too long


Andreas Schwab, on mar. 03 avril 2018 23:24:54 +0200, wrote:
> 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.

D'oh...

If I wasn't seemingly all alone actually working on patches for the Hurd
port, I'd tend to have more time to take care...

Thanks,
Samuel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]