]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix xslt_process() to ensure that it inserts a NULL terminator after the
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 10 Jul 2009 00:32:23 +0000 (00:32 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 10 Jul 2009 00:32:23 +0000 (00:32 +0000)
commitb99751a199742f1b50e0fc3f8249b53d69c8eb88
treef2e5f0bb9f6bb18cfaddea18696a7ff7157876ed
parentc36aab4e5f14875b0fba3d7df3f53a3ebca97b55
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.
contrib/xml2/xslt_proc.c