From: Tom Lane Date: Wed, 22 Nov 2006 21:13:04 +0000 (+0000) Subject: Fix 1-byte buffer overrun when OID exceeds 1 billion. This probably can't X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=73693515b225f06ee04d0066efff86773276abbf;p=users%2Fbernd%2Fpostgres.git Fix 1-byte buffer overrun when OID exceeds 1 billion. This probably can't cause any serious harm in normal cases, but if you have gcc buffer overrun checking turned on, that will notice. Found by Jack Orenstein. Problem was already fixed in CVS HEAD. --- diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c index b416d48379..2d92c12d26 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -892,7 +892,7 @@ PrintQueryResults(PGresult *results) case PGRES_COMMAND_OK: { - char buf[10]; + char buf[16]; success = true; snprintf(buf, sizeof(buf),