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

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
Cc: Vadim Shakirov <vadimsakirov5(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: [PATCH v1] Fix out-of-bounds access in pg_bsd_indent's parser stack
Date: 2026-09-30 13:06:14
Message-ID: 213AD6A1-1D18-473B-A363-B0E64A80DBB8@yesql.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 30 Sep 2026, at 13:59, Álvaro Herrera <alvherre(at)kurilemu(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Nisha Moond 2026-09-30 13:22:55 Re: Proposal: Conflict log history table for Logical Replication
Previous Message Heikki Linnakangas 2026-09-30 12:45:56 Re: 64-bit MultiXactOffset vs. 9.3->9.4 upgrade, pg_resetwal, "wraparound" msg