Re: doPickSplit stack buffer overflow in XLogInsert?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Kevin Grittner <kgrittn(at)ymail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: doPickSplit stack buffer overflow in XLogInsert?
Date: 2013-11-28 01:01:23
Message-ID: 529695E3.5000000@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 11/26/13, 5:14 PM, Kevin Grittner wrote:
> I happened to build in a shell that was still set up for the clang
> address sanitizer, and got the attached report. On a rerun it was
> repeatable. XLogInsert() seems to read past the end of a variable
> allocated on the stack in doPickSplit(). I haven't tried to analyze
> it past that, since this part of the code is unfamiliar to me.

I also see that. It only happens in 64-bit builds.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Dunstan 2013-11-28 01:15:04 Proposed feature: Selective Foreign Keys
Previous Message Andres Freund 2013-11-28 00:29:56 Re: Incomplete freezing when truncating a relation during vacuum