pgsql: Fix potential buffer overruns in proto.c.

From: Amit Kapila <akapila(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix potential buffer overruns in proto.c.
Date: 2021-07-20 02:52:43
Message-ID: E1m5fsB-0005hC-3R@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix potential buffer overruns in proto.c.

Prevent potential buffer overruns when using strcpy to gid buffer. This
has been introduced by commit a8fd13cab0.

Reported-by: Tom Lane as per coverity
Author: Peter Smith
Reviewed-by: Amit Kapila
Discussion: https://www.postgresql.org/message-id/161029.1626639923%40sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/01c3adcdd85f1507ef49bdf5430c59925d08de6f

Modified Files
--------------
src/backend/replication/logical/proto.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2021-07-20 03:13:54 pgsql: Fix some issues with WAL segment opening for pg_receivewal --com
Previous Message Peter Geoghegan 2021-07-20 00:21:02 pgsql: Doc: vacuum_multixact_failsafe_age is multixact-based.