From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AAA27398AC3A; Tue, 30 Aug 2022 08:04:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AAA27398AC3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1661846652; bh=GP6txrZLkvZx0Su8qZcvklmYnbxodAW+xT4yuwfuvuM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=L4/BARCkH/GJ/hUPcbpwNvZ67USOU7JJ/hrYdspm6l64HYcR5RR0ltZTG74bDlpN3 WUFSgr+o2x+no0h1RD/zsEWDXYiR/xpXjVDiWtpPl0v+CuVOKyk8HP3+2SlMsEnuQd D/5W1F0RmWtg1BPxeA+xWWCFWPv5RBU16T+b1ERk= 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: Tue, 30 Aug 2022 08:04:11 +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: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: fweimer at redhat dot com X-Bugzilla-Target-Milestone: --- 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 #1 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Florian Weimer : https://sourceware.org/git/gitweb.cgi?p=3Dglibc.git;h=3Dd101d836e7e4bd1d4e4= 972b0e0bd0a55c9b650fa commit d101d836e7e4bd1d4e4972b0e0bd0a55c9b650fa 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 --=20 You are receiving this mail because: You are on the CC list for the bug.=