agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
pgsql: Add more tests for corrupted data with pglz_decompress()
6+ messages / 1 participants
[nested] [flat]

* pgsql: Add more tests for corrupted data with pglz_decompress()
@ 2026-05-13 05:44  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2026-05-13 05:44 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/900c07b854a7d7549ea4116aaafbb02bc610553a

Modified Files
--------------
src/test/regress/expected/compression_pglz.out | 12 ++++++++++++
src/test/regress/sql/compression_pglz.sql      | 10 ++++++++++
2 files changed, 22 insertions(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Add more tests for corrupted data with pglz_decompress()
@ 2026-05-13 05:44  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2026-05-13 05:44 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/89192080f0a9599d121a8ba85a94b41b8c424cf5

Modified Files
--------------
src/test/regress/expected/compression_pglz.out | 12 ++++++++++++
src/test/regress/sql/compression_pglz.sql      | 10 ++++++++++
2 files changed, 22 insertions(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Add more tests for corrupted data with pglz_decompress()
@ 2026-05-13 05:44  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2026-05-13 05:44 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/54eeefaedbee0385529f3edf321bb99e49232aaa

Modified Files
--------------
src/test/regress/expected/compression_pglz.out | 12 ++++++++++++
src/test/regress/sql/compression_pglz.sql      | 10 ++++++++++
2 files changed, 22 insertions(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Add more tests for corrupted data with pglz_decompress()
@ 2026-05-13 05:44  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2026-05-13 05:44 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/5f12d86dd762d08f7e11f3ea99d718284cbcbdf2

Modified Files
--------------
src/test/regress/expected/compression_pglz.out | 12 ++++++++++++
src/test/regress/sql/compression_pglz.sql      | 10 ++++++++++
2 files changed, 22 insertions(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Add more tests for corrupted data with pglz_decompress()
@ 2026-05-13 05:44  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2026-05-13 05:44 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f4ba78081895d40ced104fc63914be7fd2e4372c

Modified Files
--------------
src/test/regress/expected/compression_pglz.out | 12 ++++++++++++
src/test/regress/sql/compression_pglz.sql      | 10 ++++++++++
2 files changed, 22 insertions(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Add more tests for corrupted data with pglz_decompress()
@ 2026-05-13 05:44  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2026-05-13 05:44 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

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(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2026-05-13 05:44 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-05-13 05:44 pgsql: Add more tests for corrupted data with pglz_decompress() Michael Paquier <michael@paquier.xyz>
2026-05-13 05:44 pgsql: Add more tests for corrupted data with pglz_decompress() Michael Paquier <michael@paquier.xyz>
2026-05-13 05:44 pgsql: Add more tests for corrupted data with pglz_decompress() Michael Paquier <michael@paquier.xyz>
2026-05-13 05:44 pgsql: Add more tests for corrupted data with pglz_decompress() Michael Paquier <michael@paquier.xyz>
2026-05-13 05:44 pgsql: Add more tests for corrupted data with pglz_decompress() Michael Paquier <michael@paquier.xyz>
2026-05-13 05:44 pgsql: Add more tests for corrupted data with pglz_decompress() Michael Paquier <michael@paquier.xyz>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox