Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uZ4x6-00FsKO-Jv for pgsql-bugs@arkaria.postgresql.org; Tue, 08 Jul 2025 09:49:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uZ4x4-006o6m-Kl for pgsql-bugs@arkaria.postgresql.org; Tue, 08 Jul 2025 09:49:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uZ4x4-006o6e-CN for pgsql-bugs@lists.postgresql.org; Tue, 08 Jul 2025 09:49:27 +0000 Received: from mx1.b1-systems.de ([159.69.135.40]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uZ4x2-006Qex-24 for pgsql-bugs@lists.postgresql.org; Tue, 08 Jul 2025 09:49:26 +0000 Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=b1-systems.de; s=default; t=1751968163; bh=HLMXqekJLQObaQTCMRY8R21xUt5dnSVHB7YglgNFcB8=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=WQSqT58qVyPcIq/cHNuizDNjpXcttEMy36DgR8ctxZMFHvKgKFWb9TploGTEeQrj7 C5paZu94M4lDyuA96pRIJLYKW2NoAveawVKPGF/fLAbGUK7E7kkEDA3DUNVI8DLn4p mRquhu05BtS1SPxKV3FBtqerksDCLyLp516YYt/4= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 08 Jul 2025 09:49:20 +0000 Message-Id: Cc: "Tom Lane" , , Subject: Re: BUG #18943: Return value of a function 'xmlBufferCreate' is dereferenced at xpath.c:177 without checking for NUL From: "Robin Haberkorn" To: "Michael Paquier" , "Jim Jones" X-Mailer: aerc 0.20.1 References: <18943-2f2a04ab03904598@postgresql.org> <861593.1748970933@sss.pgh.pa.us> <31f3480e-cd7d-4021-b392-87922572cc37@uni-muenster.de> In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello Michael! On Sun Jun 8, 2025 at 05:19:29 GMT +03, Michael Paquier wrote: > I have updated the patches with the attached, splitting the parts for > contrib/xml2/ and the backend into two parts. These touch error paths > that are very unlikely going to be hit in practice, so let's do all > that once v19 opens for business only on HEAD. I know this has already been committed, but why are we still using PG_XML_STRICTNESS_LEGACY in xpath.c? As we are always checking pg_xml_error_occurred() this should no longer be necessary. It's of course also still in xslt_proc.c, but I have submitted a separate patch to the ongoing Commitfest, which will resolve that. [1] Best regards, Robin Haberkorn [1] https://commitfest.postgresql.org/patch/5718/ btw. it's still looking for a rewiever. --=20 Robin Haberkorn Software Engineer B1 Systems GmbH Osterfeldstra=C3=9Fe 7 / 85088 Vohburg / https://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt, HRB 3537