Fix potential buffer overruns in proto.c.
authorAmit Kapila <[email protected]>
Tue, 20 Jul 2021 02:45:01 +0000 (08:15 +0530)
committerAmit Kapila <[email protected]>
Tue, 20 Jul 2021 02:45:01 +0000 (08:15 +0530)
commit01c3adcdd85f1507ef49bdf5430c59925d08de6f
tree51870d9a89eb498c8dc51c408400008345145b9c
parentdd498998a374b3d2a7f5211504f1f1aa15348cf1
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
src/backend/replication/logical/proto.c