aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-03-08 01:09:36 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-03-08 01:09:36 +0000
commit9c767ad57b2dfbbed6b08fd56c8ce320e6fe8849 (patch)
treeb817ef34b99025cea58096107880a581aa776c2c /src/backend/tcop/postgres.c
parentad434473ebd2d24dcf400896ac1539676009af08 (diff)
downloadpostgresql-9c767ad57b2dfbbed6b08fd56c8ce320e6fe8849.tar.gz
postgresql-9c767ad57b2dfbbed6b08fd56c8ce320e6fe8849.zip
Improve pglz_decompress() so that it cannot clobber memory beyond the
available output buffer when presented with corrupt input. Some testing suggests that this slows the decompression loop about 1%, which seems an acceptable price to pay for more robustness. (Curiously, the penalty seems to be *less* on not-very-compressible data, which I didn't expect since the overhead per output byte ought to be more in the literal-bytes path.) Patch from Zdenek Kotala. I fixed a corner case and did some renaming of variables to make the routine more readable.
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions