From 40bcf7e24590593594044495f9b4d9bd89b248b1 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 22 Nov 2006 21:12:57 +0000 Subject: [PATCH] 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. --- src/bin/psql/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c index 08056038d3..beb5cd3e89 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -903,7 +903,7 @@ PrintQueryResults(PGresult *results) case PGRES_COMMAND_OK: { - char buf[10]; + char buf[16]; success = true; snprintf(buf, sizeof(buf), -- 2.39.5