bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Samuel Thibault
Subject: Re: [hurd,commited] hurd: Make __if_nametoindex return ENODEV if ifname is too long
Date: Wed, 4 Apr 2018 00:03:20 +0200
User-agent: NeoMutt/20170113 (1.7.2)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]