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

From Peter Eisentraut
Subject pgsql: ecpg: Fix off-by-one error in memory copying
Date
Msg-id E1S6WIR-000371-C7@gemulon.postgresql.org
Whole thread Raw
List 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
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/3043608cf72b0abd8b022034080f44cc29ff0cf5

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


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Restructure SPGiST opclass interface API to support whole-index
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Add more detail to error message for invalid arguments for serve