pgsql: Fix AddressSanitizer use-after-scope complaint. - Mailing list pgsql-committers

From Peter Geoghegan
Subject pgsql: Fix AddressSanitizer use-after-scope complaint.
Date
Msg-id E1jUEvf-0004OE-Iu@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: pgsql: Add deduplication to nbtree.
Next
From: Peter Geoghegan
Date:
Subject: Re: pgsql: Add deduplication to nbtree.