Thread: pgsql-server/src/bin/psql describe.c

pgsql-server/src/bin/psql describe.c

From
tgl@postgresql.org (Tom Lane)
Date:
CVSROOT:    /cvsroot
Module name:    pgsql-server
Changes by:    tgl@postgresql.org    02/12/20 20:07:07

Modified files:
    src/bin/psql   : describe.c

Log message:
    Fix possible buffer overrun in \d command: substr(..., 128) produces
    a result of at most 128 chars, but that could be more than 128 bytes.
    Also ensure we don't try to pfree uninitialized pointers during error
    cleanup.