pgsql: pg_stash_advice: Reject overlong stash names in dump file. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: pg_stash_advice: Reject overlong stash names in dump file.
Date
Msg-id E1wT0xq-0009If-1g@gemulon.postgresql.org
Whole thread
List 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.slg01@gmail.com>
Co-authored-by: Ayush Tiwari <ayushtiwari.slg01@gmail.com>
Co-authored-by: Robert Haas <rhaas@postgresql.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(+)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Use term "referenced" rather than "dependent" in dependency lock
Next
From: Robert Haas
Date:
Subject: pgsql: pg_plan_advice: DO_NOT_SCAN is a simple tag, not a generic one.