Add more tests for corrupted data with pglz_decompress()
Michael Paquier <michael@paquier.xyz>
Add more tests for corrupted data with pglz_decompress() Two cases fixed by 2b5ba2a0a141 were not covered, to emulate the handling of corrupted data, for: - set control bit with a valid 2-byte match tag where offset is 0. - set control bit with a valid 2-byte match tag where offset exceeds output written. Oversight in 67d318e70402. Reviewed-by: Ayush Tiwari <ayushtiwari.slg01@gmail.com> Discussion: https://postgr.es/m/agF4xkIdRcrCIprs@paquier.xyz Backpatch-through: 14
Files
| Path | Change | +/− |
|---|---|---|
| src/test/regress/expected/compression_pglz.out | modified | +12 −0 |
| src/test/regress/sql/compression_pglz.sql | modified | +10 −0 |
Discussion
- Plug-in coverage hole for pglz_decompress() 3 messages · 2026-05-11 → 2026-05-13