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

pgsql: ecpg: Fix off-by-one error in memory copying

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: ecpg: Fix off-by-one error in memory copying
Date: 2012-03-08 20:38:39
Message-ID: E1S5k6h-0000Pp-A4@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
ecpg: Fix off-by-one error in memory copying

In a rare case, one byte past the end of memory belonging to the
sqlca_t structure would be written to.

found by Coverity

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/c5e073ca2deec1595e4fdd748f14fcb4122e8faf

Modified Files
--------------
src/interfaces/ecpg/ecpglib/misc.c |    2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

pgsql-committers by date

Next:From: Peter EisentrautDate: 2012-03-08 20:40:07
Subject: Re: pgsql: psql: Fix invalid memory access
Previous:From: Heikki LinnakangasDate: 2012-03-08 09:14:26
Subject: pgsql: Silence warning about unused variable,when building without ass

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