Error in recent pg_dump change (coverity)

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Error in recent pg_dump change (coverity)
Date: 2006-05-28 12:32:04
Message-ID: 20060528123204.GA22869@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Coverity picked up an error in dumpStdStrings() since last night. At
line 1448 there's PQclear(res) yet it's used several times further down
(lines 1452, 1454 and 1456).

I'd actually suggest zeroing out res->tuples in PQclear so this sort of
problem becomes much more obvious.

Coverity bug 304 for people watching at home.
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2006-05-28 15:42:48 Re: Error in recent pg_dump change (coverity)
Previous Message Marko Kreen 2006-05-28 11:45:39 Re: Inefficient bytea escaping?