pgsql: Make contrib/xml2 use core xml.c's error handler, when available - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Make contrib/xml2 use core xml.c's error handler, when available
Date
Msg-id 20100303191052.63BA87541D0@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Make contrib/xml2 use core xml.c's error handler, when available (that is,
in versions >= 8.3).  The core code is more robust and efficient than what
was there before, and this also reduces risks involved in swapping different
libxml error handler settings.

Before 8.3, there is still some risk of problems if add-on modules such as
Perl invoke libxml without setting their own error handler.  Given the lack
of reports I'm not sure there's a risk in practice, so I didn't take the
step of actually duplicating the core code into older contrib/xml2 branches.
Instead I just tweaked the existing code to ensure it didn't leave a dangling
pointer to short-lived memory when throwing an error.

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/contrib/xml2:
        xpath.c (r1.6.4.3 -> r1.6.4.4)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/contrib/xml2/xpath.c?r1=1.6.4.3&r2=1.6.4.4)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Make contrib/xml2 use core xml.c's error handler, when available
Next
From: heikki@postgresql.org (Heikki Linnakangas)
Date:
Subject: pgsql: Fix pg_dump of ACLs of foreign servers.