XLogInsert() of dangling pointer while logging replica identity - Mailing list pgsql-hackers

From Stas Kelvich
Subject XLogInsert() of dangling pointer while logging replica identity
Date
Msg-id 085C8825-AD86-4E93-AF80-E26CDF03D1EA@postgrespro.ru
Whole thread Raw
Responses Re: XLogInsert() of dangling pointer while logging replica identity  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
Hi, hackers.

  It seems that heapam.c:3082 calls XLogRegisterData() with an argument
allocated on stack, but following call to XLogInsert() happens after
end of context for that variable.
  Issue spotted by clang's AddressSanitizer. Fix attached.

--
Stas Kelvich
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company


Attachment

pgsql-hackers by date:

Previous
From: Lætitia Avrot
Date:
Subject: Re: [Patch] Log10 and hyperbolic functions for SQL:2016 compliance
Next
From: Masahiko Sawada
Date:
Subject: Re: [HACKERS] Block level parallel vacuum