Thread: pgsql: Backpatch Zdenek Kotala's fix to prevent pglz_decompress from

pgsql: Backpatch Zdenek Kotala's fix to prevent pglz_decompress from

From
tgl@postgresql.org (Tom Lane)
Date:
Log Message:
-----------
Backpatch Zdenek Kotala's fix to prevent pglz_decompress from stomping on
memory if the compressed data is corrupt.

Backpatch as far as 8.2.  The issue exists in older branches too, but given
the lack of field reports, it's not clear it's worth any additional effort
to adapt the patch to the slightly different code in older branches.

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        pg_lzcompress.c (r1.29 -> r1.29.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/pg_lzcompress.c?r1=1.29&r2=1.29.2.1)