]> git.ipfire.org Git - thirdparty/postgresql.git/commit
pg_stash_advice: Reject overlong stash names in dump file.
authorRobert Haas <rhaas@postgresql.org>
Fri, 29 May 2026 17:25:20 +0000 (13:25 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 29 May 2026 17:25:20 +0000 (13:25 -0400)
commit878839bafe259e6df355e7adc5a040a1541b63b8
treee887bf93dc1b032d6d076bab0a505879f4032039
parent2670cc298f42cd7b1c426bf7ccfb0652d8e0b347
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
contrib/pg_stash_advice/stashpersist.c