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.96) (envelope-from ) id 1vzV9l-0013sB-0x for pgsql-bugs@arkaria.postgresql.org; Mon, 09 Mar 2026 07:36:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vzV9j-00EfnH-23 for pgsql-bugs@arkaria.postgresql.org; Mon, 09 Mar 2026 07:36:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vzV9i-00Efn9-2m for pgsql-bugs@lists.postgresql.org; Mon, 09 Mar 2026 07:35:59 +0000 Received: from fhigh-a4-smtp.messagingengine.com ([103.168.172.155]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vzV9h-00000001FVv-1kUs for pgsql-bugs@lists.postgresql.org; Mon, 09 Mar 2026 07:35:58 +0000 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfhigh.phl.internal (Postfix) with ESMTP id 6C24414001CB; Mon, 9 Mar 2026 03:31:51 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Mon, 09 Mar 2026 03:31:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1773041511; x=1773127911; bh=hIW5ZQrBxb kLXJtD+gZUcBopufKZI4KYEt3JVEcxLK0=; b=r8mfEjYA5UKdwtSDvumreHFDlI Moysan7TB1w0uHgCSPNGSWem4VZEUCKi4qZv0X/7BuLlyg9MiNftUeGlagj4IYG4 mblz/qt65SxS9KHZ88O2VA0DCtFGPZ5zxYG1xcrx9lSFgq0XBwnCypf1qvQzwjXU 31zeUWMvRhy6NcHHvEl5AcEAMm1+/9MlABTlbnR24XxtLCeNDkASAZYncNGETRYG Bi2l51+ZHj1EoH2qqc2SzrUeksQ6gJU0PEKRATLJgUmX/hwUgIM1v+AFE+/GvXt1 plbC69Seo++F9FltZqgFRLS4YalngNSGBcpF0fNFZCKKpCoqQRWfHEcMEJvg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1773041511; x=1773127911; bh=hIW5ZQrBxbkLXJtD+gZUcBopufKZI4KYEt3 JVEcxLK0=; b=m2v0cgd4j2EfJEmeUzrYXI2bHBWVmUOx8wD8dVZBeCuZpzAzrau H/Xou0Wg9VJupU7wvnMh8IIMXboVMRAM/GYORmeiuSSOTaVM6at9Dbge4hdfn67l vymK0jstoSJ6oRCTN6F3HBTlsHsSDx2QAzLkDITOdk2315GUDjvOv0zRcoEV4KN/ isRniis0XOOFpXPJ2FEhPEZKPjajbSYZpZMlJnZN3XLohi9jHnhOR3jOpiGjDTqU k1Sd4kneU97/0zldwQyz903dJY9nTLz11aY9T7HmafL9kOUpuC8D76DbGPW8uBa6 fNOlbx52vAlHHie8qBsB0m/xDSgVyiw+Pqw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvjeejheduucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeggeeg fffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidp nhgspghrtghpthhtohephedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheptggtrg ehhedtjeesqhhqrdgtohhmpdhrtghpthhtohepjhhimhdrjhhonhgvshesuhhnihdqmhhu vghnshhtvghrrdguvgdprhgtphhtthhopehtghhlsehsshhsrdhpghhhrdhprgdruhhspd hrtghpthhtohepphhgshhqlhdqsghughhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdr ohhrghdprhgtphhtthhopehmrghrrghlihhsthekieesmhgrihhlrdhruh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 9 Mar 2026 03:31:43 -0400 (EDT) Date: Mon, 9 Mar 2026 16:31:37 +0900 From: Michael Paquier To: cca5507 Cc: Jim Jones , Tom Lane , pgsql-bugs , maralist86 Subject: Re: BUG #18943: Return value of a function 'xmlBufferCreate' isdereferenced at xpath.c:177 without checking for NUL Message-ID: References: <861593.1748970933@sss.pgh.pa.us> <31f3480e-cd7d-4021-b392-87922572cc37@uni-muenster.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+6mgIepjRe25obdK" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --+6mgIepjRe25obdK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 08, 2026 at 11:05:32PM +0800, cca5507 wrote: > Attach a small patch. You are right, this needs to consider the pointer variable as volatile, as done in your patch, and not treat as volatile what is pointed at. This comes from 2e947217474c, as of HEAD. I'll take care of it later. The same business has been fixed in xml2 as of 93001888d85c.=20 -- Michael --+6mgIepjRe25obdK Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmmud1kACgkQnvQgOdby QH3eIA/8CjW9SZF1gHy8WMblV0s0vw9UGpeEGjoOOpJD6cUq3975F+IC8P/Mcls9 vbtrDKfyMRmiRJdEZVP98cwG3jW5fSITjou602Q5OZHZ89byN9uutIOjAdqhHK43 8QIL247sLcudzafXYkKItFtOcNuyNSGHuN/ZMeOOPjC7Hnwra7zMlVNs4OYGZsg9 sqkYscSZOFtoFDUC7Prwu8wOXjBm+cNsJAdQNBCQyNQ3PCkuGKL42EzHN+q9PdR+ AeVwMf7RN5YPvxSCm0deN0qAMVD23vSTXXU7yj6dwJv6NDeC9Ttw6SHAa5nrruoF rnlWL69/IwbAKgWolr6NVtg6k94xEdpJCXSgIh3yKJy4fA0W8LfqKo5cxQd3pLkF jdAA/Vt9kYFmIVVwEQKmYL60ylasIAylGHwaGH2YgDLetIt8QrGc9D1J4W7hWmcB GYAmHOclOsJBkBdeXWGyKWH/N+fxmucTKzTAo/APaBC4P6I6yOlNGUZW4H0EeCSQ 1Rnxc2OcEO64QzlFzsrLEuzJnNqAr3XQJuwwIgUAZDb5Io7blCaxZ0R0rZTPnSPk ZcdwwI5YaG3rdI+UtkMkthlFS5Gm0EIjTNwvOghxrkzUoVu/DoRoFsaxlMdA69J9 BKoV6V0IesKDHmF7iq1SFnB2zogfWMfaZN334qhG40t65Y+uEXI= =4kR8 -----END PGP SIGNATURE----- --+6mgIepjRe25obdK--