From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from albireo.enyo.de (albireo.enyo.de [37.24.231.21]) by sourceware.org (Postfix) with ESMTPS id 04AA33858427 for ; Fri, 1 Apr 2022 13:24:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 04AA33858427 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=deneb.enyo.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=deneb.enyo.de Received: from [172.17.203.2] (port=47453 helo=deneb.enyo.de) by albireo.enyo.de ([172.17.140.2]) with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) id 1naHG8-003Es3-3u; Fri, 01 Apr 2022 13:24:12 +0000 Received: from fw by deneb.enyo.de with local (Exim 4.94.2) (envelope-from ) id 1naHG7-000Dy5-Q9; Fri, 01 Apr 2022 15:24:11 +0200 From: Florian Weimer To: Dmitriy Chestnyh Cc: "libc-stable@sourceware.org" , Valeriy Kascheev Subject: Re: Possibly non-terminated string in sprof utility References: <1bccf4aeb08548cbbe4e99bd2e79eb3b@omp.ru> Date: Fri, 01 Apr 2022 15:24:11 +0200 In-Reply-To: <1bccf4aeb08548cbbe4e99bd2e79eb3b@omp.ru> (Dmitriy Chestnyh's message of "Fri, 1 Apr 2022 07:58:42 +0000") Message-ID: <87bkxlhr7o.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-stable@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-stable mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Apr 2022 13:24:16 -0000 * Dmitriy Chestnyh: > Can we be sure that variable `soname` at line 290 of elf/sprof.c is > always null-terminated string? The pointer points into the dynamic string table of the ELF object, so it's null-terminated as long as the ELF file is valid.