pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix AddressSanitizer use-after-scope complaint.
Date: Thu, 30 Apr 2020 19:33:03 +0000
Message-ID: <E1jUEvf-0004OE-Iu@gemulon.postgresql.org> (raw)

Fix AddressSanitizer use-after-scope complaint.

XLogRegisterBufData() does not copy data pointed to by caller's pointer
argument.

Oversight in commit 0d861bbb702.

Author: Peter Eisentraut
Reported-By: Peter Eisentraut
Discussion: https://postgr.es/m/21800dbe-a13e-22f7-d423-b81db9d249f5@2ndquadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/dd1f645cc8831f55591e466c56b3953b9d100993

Modified Files
--------------
src/backend/access/nbtree/nbtinsert.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)



Message-ID: <E1jUEvf-0004OE-Iu@gemulon.postgresql.org>
Permalink:  ../E1jUEvf-0004OE-Iu@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jUEvf-0004OE-Iu@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: pg@bowt.ie
  Subject: Re: pgsql: Fix AddressSanitizer use-after-scope complaint.
  In-Reply-To: <E1jUEvf-0004OE-Iu@gemulon.postgresql.org>
  References: <E1jUEvf-0004OE-Iu@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