Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group