| From: | Michael Paquier <michael(at)paquier(dot)xyz> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Add more tests for corrupted data with pglz_decompress() |
| Date: | 2026-05-13 05:44:34 |
| Message-ID: | E1wN2OX-000IhG-35@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(dot)slg01(at)gmail(dot)com>
Discussion: https://postgr.es/m/agF4xkIdRcrCIprs@paquier.xyz
Backpatch-through: 14
Branch
------
REL_14_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/5c00f4e2e3bcee6931ae93429d53f7c2a4f46156
Modified Files
--------------
src/test/regress/input/compression_pglz.source | 10 ++++++++++
src/test/regress/output/compression_pglz.source | 12 ++++++++++++
2 files changed, 22 insertions(+)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2026-05-13 06:48:43 | pgsql: pg_stat_statements: Set PlannedStmt to NULL after nested utility |
| Previous Message | Fujii Masao | 2026-05-13 02:47:58 | pgsql: Fix stale COPY progress during logical replication table sync |