Backpatch Zdenek Kotala's fix to prevent pglz_decompress from stomping on

Tom Lane <tgl@sss.pgh.pa.us>

Commit: d015675da6861bb5bc443bcc8fbefb4d27159e67
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-05-28T21:58:08Z
Releases: 8.2.8
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.

Files

PathChange+/−
src/backend/utils/adt/pg_lzcompress.c modified +66 −51