]> granicus.if.org Git - postgresql/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:17 +0000 (00:32 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 10 Jul 2009 00:32:17 +0000 (00:32 +0000)
commit702e2989d5958e7f3004cb20e1ee8d3ec5aca864
tree223a680a56e6292825a3fe3de220e4d31aefb561
parentdba44a63b09bb4b3fbf5368364d8fa06f3c4250c
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