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 1wXoMj-003Uce-36 for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Jun 2026 22:59:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wXoMi-00HDxx-2i for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Jun 2026 22:59:12 +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.96) (envelope-from ) id 1wXoMi-00HDxp-1L for pgsql-bugs@lists.postgresql.org; Thu, 11 Jun 2026 22:59:12 +0000 Received: from forward501a.mail.yandex.net ([178.154.239.81]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wXoMg-00000002csp-0ImJ for pgsql-bugs@lists.postgresql.org; Thu, 11 Jun 2026 22:59:12 +0000 Received: from mail-nwsmtp-smtp-production-main-54.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-54.vla.yp-c.yandex.net [IPv6:2a02:6b8:c17:2010:0:640:2180:0]) by forward501a.mail.yandex.net (Yandex) with ESMTPS id 5ED838116F; Fri, 12 Jun 2026 01:59:08 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-54.vla.yp-c.yandex.net (smtp) with ESMTPSA id 7xUuqxic2mI0-IxX87oN6; Fri, 12 Jun 2026 01:59:08 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tantorlabs.com; s=mail; t=1781218748; bh=mWtK/doXCTT4hg5w8gpTun2LdYYZ8tqNJvbQxB5FRC4=; h=Cc:Message-ID:Subject:Date:References:To:From:In-Reply-To; b=IHWzCWLYhdSGJg6mPEDHt7+i4hdOSytXJd8rsLXbMhFS+8AaNzimOYONvjwAWi66v WR94PwLj+BZzb+f8+PoBnGmM/9DMJf7p/PFHV0U11UTElQ43qkRj/oDQIruvWRtxaH l/eYpk3dv2CHQkZX7xXzdQrARq8t+NwJR5kOl5oA= Authentication-Results: mail-nwsmtp-smtp-production-main-54.vla.yp-c.yandex.net; dkim=pass header.i=@tantorlabs.com Date: Fri, 12 Jun 2026 01:59:06 +0300 From: Andrey Chernyy To: Michael Paquier Cc: pgsql-bugs@lists.postgresql.org Subject: Re: [PATCH] contrib/xml2: backend crash in xpath_nodeset() on the namespace axis Message-ID: <20260612015906.38b47d04@andrnote> In-Reply-To: References: <20260611031436.5afde3cb@andrnote> X-Mailer: Claws Mail 4.4.0 (GTK 3.24.52; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 11 Jun 2026 10:48:30 +0900 Michael Paquier wrote: > What do you think? That also deserves a backpatch to me, even if it > is less worse than the xml2 crash you have reported. > > I have grouped this fix with your patch in the attached. Both still > need some tests. Each fix deserves its own commit, that's just a > quick FYI version. Thanks Michael, and thanks for adding the tests and back-patching! The grouped patch looks good to me - applying the same XML_NAMESPACE_DECL fallback to xmlXPathCastNodeToString() in core xml.c makes sense too. I had a regression test in progress, but glad it's already covered. -- Andrey Chernyy