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

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

Commit: f26cbcab751e1c81fc704eeb14e28ea6c84150ed
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-05-28T21:58:03Z
Releases: 8.3.2
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 +46 −31