From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F238F3851A99; Tue, 13 Sep 2022 11:23:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F238F3851A99 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1663068228; bh=2RbF9C+nX+NE7HDnpfIKGwctfXDUjEnpDreKS7YJxCY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LPPCFALqT8j8V96DXBVcAfKal8x8Xs3DgeNPRc1b6xTrbSVY0aQOOvdQT89Veunbd wWsKp8w2vLYAWb1ZxQCUcJD9utkX1BlSiNW4H0KJKhObhaWnrz0DIpLjfQ5NCwKk52 ivMaNRhj5kdCUt7D2nKyR7IMFLPVjOftx/cVrjZ8= 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, 13 Sep 2022 11:23:47 +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 #3 from cvs-commit at gcc dot gnu.org --- The release/2.36/master branch has been updated by Florian Weimer : https://sourceware.org/git/gitweb.cgi?p=3Dglibc.git;h=3D78c8ef21fa54e994451= d5b42ead6080d99a88a49 commit 78c8ef21fa54e994451d5b42ead6080d99a88a49 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.=