From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8ECFD3858012; Wed, 21 Sep 2022 18:01:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8ECFD3858012 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1663783286; bh=c7OpS8gRLhCi5nrGKTRxL0qdy+dekujWtOMDmM5V34s=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Whj67iSRI6qpoxzqQTo8Wb9Cd5xniQfoXwbrOD+EaWeVlI3ggerXCxVjy2ctOxR7u eA5Q+nrNsU/65zvx0PsMfPoERh+6Oe4gYgFC7glFzRqXtuCNLi3mIGhw13yR+adPpN HOqQ0fN1HNwkQC2PRIrjG0Bo4AqFFzWeupmNm2b0= From: "cvs-commit at gcc dot gnu.org" To: glibc-bugs@sourceware.org Subject: [Bug network/29305] Inefficient buffer space usage in nss_dns for gethostbyname and other functions Date: Wed, 21 Sep 2022 18:01:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: network X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: fweimer at redhat dot com X-Bugzilla-Target-Milestone: 2.37 X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29305 --- Comment #6 from cvs-commit at gcc dot gnu.org --- The release/2.34/master branch has been updated by Florian Weimer : https://sourceware.org/git/gitweb.cgi?p=3Dglibc.git;h=3D9abc40d9b514fc51cd1= a052d32d092a827c6e21a commit 9abc40d9b514fc51cd1a052d32d092a827c6e21a Author: Florian Weimer Date: Tue Aug 30 10:02:49 2022 +0200 nss_dns: Rewrite getanswer_r to match getanswer_ptr (bug 12154, bug 293= 05) Allocate the pointer arrays only at the end, when their sizes are known. This addresses bug 29305. Skip over invalid names instead of failing lookups. This partially fixes bug 12154 (for gethostbyname, fixing getaddrinfo requires different changes). Reviewed-by: Siddhesh Poyarekar (cherry picked from commit d101d836e7e4bd1d4e4972b0e0bd0a55c9b650fa) --=20 You are receiving this mail because: You are on the CC list for the bug.=