From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 66728 invoked by alias); 3 Apr 2018 21:25:00 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 66613 invoked by uid 89); 3 Apr 2018 21:24:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-6.6 required=5.0 tests=BAYES_00,GIT_PATCH_1,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=HX-HELO:sk:mail-ou X-HELO: mail-out.m-online.net X-Auth-Info: FnE3DqyrDZkR18XgGz/6GvoW0nyrH4xuPNcnAlwET2TTn4Js9ehVZBOTDKrL45x8 From: Andreas Schwab To: Samuel Thibault Cc: libc-alpha@sourceware.org Subject: Re: [hurd,commited] hurd: Make __if_nametoindex return ENODEV if ifname is too long References: <20180403211458.12717-1-samuel.thibault@ens-lyon.org> X-Yow: Now my EMOTIONAL RESOURCES are heavily committed to 23% of the SMELTING and REFINING industry of the state of NEVADA!! Date: Tue, 03 Apr 2018 21:25:00 -0000 In-Reply-To: <20180403211458.12717-1-samuel.thibault@ens-lyon.org> (Samuel Thibault's message of "Tue, 3 Apr 2018 23:14:58 +0200") Message-ID: <87sh8c3rvd.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2018-04/txt/msg00081.txt.bz2 On Apr 03 2018, Samuel Thibault 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."