pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix potential buffer overruns in proto.c.
Date: Tue, 20 Jul 2021 02:52:43 +0000
Message-ID: <E1m5fsB-0005hC-3R@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1m5fsB-0005hC-3R@gemulon.postgresql.org>
Permalink:  ../E1m5fsB-0005hC-3R@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1m5fsB-0005hC-3R@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: akapila@postgresql.org
  Subject: Re: pgsql: Fix potential buffer overruns in proto.c.
  In-Reply-To: <E1m5fsB-0005hC-3R@gemulon.postgresql.org>
  References: <E1m5fsB-0005hC-3R@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox