pgsql: Fix bogus length calculation that could lead to crash if the

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix bogus length calculation that could lead to crash if the
Date: 2007-11-20 23:14:41
Message-ID: 20071120231441.77D787540F0@cvs.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/src/backend/utils/adt:
xml.c (r1.58 -> r1.59)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/xml.c?r1=1.58&r2=1.59)

Browse pgsql-committers by date

  From Date Subject
Next Message User Aglio 2007-11-21 00:34:27 press - pr: Added HTML pages for translation.
Previous Message User Cunha17 2007-11-20 22:45:27 snapshot - root: Removing unsupported FAST REFRESH drivers.