Skip site navigation (1) Skip section navigation (2)

pgsql: Fix xslt_process() to ensure that it inserts a NULL terminator

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix xslt_process() to ensure that it inserts a NULL terminator
Date: 2009-07-10 00:32:23
Message-ID: 20090710003223.8809B75331E@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Fix xslt_process() to ensure that it inserts a NULL terminator after the
last pair of parameter name/value strings, even when there are MAXPARAMS
of them.  Aboriginal bug in contrib/xml2, noted while studying bug #4912
(though I'm not sure whether there's something else involved in that
report).

This might be thought a security issue, since it's a potential backend
crash; but considering that untrustworthy users shouldn't be allowed
to get their hands on xslt_process() anyway, it's probably not worth
getting excited about.

Tags:
----
REL8_1_STABLE

Modified Files:
--------------
    pgsql/contrib/xml2:
        xslt_proc.c (r1.4 -> r1.4.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/contrib/xml2/xslt_proc.c?r1=1.4&r2=1.4.2.1)

pgsql-committers by date

Next:From: Tom LaneDate: 2009-07-10 00:32:29
Subject: pgsql: Fix xslt_process() to ensure that it inserts a NULL terminator
Previous:From: Tom LaneDate: 2009-07-10 00:32:17
Subject: pgsql: Fix xslt_process() to ensure that it inserts a NULL terminator

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group