OSDN Git Service

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)
commitd23ba77a440597a99fd6ca90cd2a750cb95be352
treeaddcf8b5e1047460110faef8eb4a45215ef36f84
parent09a98e61c31938a5fb3c5a12b51fcfe08b8b3931
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