Fix bogus length calculation that could lead to crash if the string
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 20 Nov 2007 23:14:41 +0000 (23:14 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 20 Nov 2007 23:14:41 +0000 (23:14 +0000)
commitde66c04e602b3012b7a26d26bd2971229ab3c647
treec04aba5ed84d2436c454ff01149e9455567db1b4
parentd74e553ffce77889e8358fb083a4ac02744eb593
Fix bogus length calculation that could lead to crash if the string
happened to be right up against the end of memory, per report from
Matt Magoffin.  While at it, avoid useless multiple copying of string
by not depending on xmlStrncatNew.
src/backend/utils/adt/xml.c