pgsql: Ensure xmlFree(NULL) is a no-op instead of a core dump.

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Ensure xmlFree(NULL) is a no-op instead of a core dump.
Date: 2009-06-10 03:44:42
Message-ID: 20090610034442.58623753336@cvs.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Ensure xmlFree(NULL) is a no-op instead of a core dump. Per report from
Sergey Burladyan, there are at least some dank corners of libxml2 that
assume this behavior, even though their published documentation suggests
they shouldn't.

This is only really a live problem in 8.3, but the code is still there
for possible debugging use in HEAD, so patch both branches.

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
pgsql/src/backend/utils/adt:
xml.c (r1.68.2.9 -> r1.68.2.10)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/xml.c?r1=1.68.2.9&r2=1.68.2.10)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2009-06-10 05:05:03 pgsql: Make handling of INTERVAL DAY TO MINUTE and INTERVAL DAY TO
Previous Message Tom Lane 2009-06-10 03:44:35 pgsql: Ensure xmlFree(NULL) is a no-op instead of a core dump.