pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix crash with old libxml2
2+ messages / 2 participants
[nested] [flat]

* pgsql: Fix crash with old libxml2
@ 2019-03-08 22:14  Alvaro Herrera <alvherre@alvh.no-ip.org>
  0 siblings, 1 reply; 2+ messages in thread

From: Alvaro Herrera @ 2019-03-08 22:14 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix crash with old libxml2

Certain libxml2 versions (such as the 2.7.6 commonly seen in older
distributions, but apparently only on x86_64) contain a bug that causes
xmlCopyNode, when called on a XML_DOCUMENT_NODE, to return a node that
xmlFreeNode crashes on.  Arrange to call xmlFreeDoc instead of
xmlFreeNode for those nodes.

Per buildfarm members lapwing and grison.

Author: Pavel Stehule, light editing by Álvaro.
Discussion: https://postgr.es/m/20190308024436.GA2374@alvherre.pgsql

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2e616dee9e601d36462dc4cc48eb0b6a1ff20051

Modified Files
--------------
src/backend/utils/adt/xml.c | 58 +++++++++++++++++++++++++++++++--------------
1 file changed, 40 insertions(+), 18 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: pgsql: Fix crash with old libxml2
@ 2019-03-08 22:21  Alvaro Herrera <alvherre@2ndquadrant.com>
  parent: Alvaro Herrera <alvherre@alvh.no-ip.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Alvaro Herrera @ 2019-03-08 22:21 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

On 2019-Mar-08, Alvaro Herrera wrote:

> Fix crash with old libxml2
> 
> Certain libxml2 versions (such as the 2.7.6 commonly seen in older
> distributions, but apparently only on x86_64) contain a bug that causes
> xmlCopyNode, when called on a XML_DOCUMENT_NODE, to return a node that
> xmlFreeNode crashes on.  Arrange to call xmlFreeDoc instead of
> xmlFreeNode for those nodes.

I forgot to note in the commit message that the crash was introduced
yesterday with commit 251cf2e27bec98274e8bb002608680bdc211319e, "Fix
minor deficiencies in XMLTABLE, xpath(), xmlexists()".

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2019-03-08 22:21 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-03-08 22:14 pgsql: Fix crash with old libxml2 Alvaro Herrera <alvherre@alvh.no-ip.org>
2019-03-08 22:21 ` Alvaro Herrera <alvherre@2ndquadrant.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox