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 <[email protected]>
Co-authored-by: Ayush Tiwari <[email protected]>
Co-authored-by: Robert Haas <[email protected]>
Discussion: 
http://postgr.es/m/CAJTYsWWYhcEx1YqC=b331-df9epd8mxzwswwl0okz9llcuu...@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(+)

Reply via email to