Re: [PATCH v1] Fix out-of-bounds access in pg_bsd_indent's parser stack - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: [PATCH v1] Fix out-of-bounds access in pg_bsd_indent's parser stack
Date
Msg-id 213AD6A1-1D18-473B-A363-B0E64A80DBB8@yesql.se
Whole thread
In response to Re: [PATCH v1] Fix out-of-bounds access in pg_bsd_indent's parser stack  (Álvaro Herrera <alvherre@kurilemu.de>)
List pgsql-hackers
> On 30 Sep 2026, at 13:59, Álvaro Herrera <alvherre@kurilemu.de> wrote:
>
> On 2026-Sep-30, Daniel Gustafsson wrote:
>
>> I haven't read the patch, but reproducers of bugs are good to have.  Is there a
>> pattern which hits this out-of-bounds access?
>
> Fun.  I did this
>
> (echo "int main() {" ; for i in `seq 1 256`; do echo "if ($i) "; done ; echo "switch (argc) {case 1: break;}}" ) >
pgindent.c

Neat, thanks!

--
Daniel Gustafsson




pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: 64-bit MultiXactOffset vs. 9.3->9.4 upgrade, pg_resetwal, "wraparound" msg
Next
From: Nisha Moond
Date:
Subject: Re: Proposal: Conflict log history table for Logical Replication