pgsql: pg_stash_advice: Reject overlong stash names in dump file.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_stash_advice: Reject overlong stash names in dump file.
Date: 2026-05-29 17:25:42
Message-ID: E1wT0xq-0009If-1g@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pg_stash_advice: Reject overlong stash names in dump file.

Otherwise, the server will crash. This can only happen if the dump
file has been corrupted or manually altered, but we should still
defend against it.

Reported-by: Ayush Tiwari <ayushtiwari(dot)slg01(at)gmail(dot)com>
Co-authored-by: Ayush Tiwari <ayushtiwari(dot)slg01(at)gmail(dot)com>
Co-authored-by: Robert Haas <rhaas(at)postgresql(dot)org>
Discussion: http://postgr.es/m/CAJTYsWWYhcEx1YqC=B331-Df9EpD8MxzwswWL0okz9LLCUUpBA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/878839bafe259e6df355e7adc5a040a1541b63b8

Modified Files
--------------
contrib/pg_stash_advice/stashpersist.c | 7 +++++++
1 file changed, 7 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2026-05-29 18:02:25 pgsql: pg_plan_advice: DO_NOT_SCAN is a simple tag, not a generic one.
Previous Message Álvaro Herrera 2026-05-29 10:38:48 pgsql: Cover additional errors and corner conditions in repack.c