Fix xslt_process() to ensure that it inserts a NULL terminator after themaster
commit272152947c695422deda6f0d2849e97fec94ce87
authortgl <tgl>
Fri, 10 Jul 2009 00:32:00 +0000 (10 00:32 +0000)
committertgl <tgl>
Fri, 10 Jul 2009 00:32:00 +0000 (10 00:32 +0000)
treedebfadb8b58aa2f095a6cd460a57ac6bf406045e
parent14099ada94123c9f8be7cb33b07b556d794ee1bb
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