| From: | Michael Paquier <michael(at)paquier(dot)xyz> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: test_bitmapset: Improve handling of incorrect inputs |
| Date: | 2026-09-10 02:29:39 |
| Message-ID: | E1x4UXi-00000004DQd-3KhN@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
test_bitmapset: Improve handling of incorrect inputs
The SQL wrappers of the module relied on stringToNode(), that entirely
trusts its input. This commit applies an extra round of validation, to
prevent the test module from crashing on incorrect inputs, provided
through the SQL functions.
No backpatch, as this is no critical issue.
Author: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
Reviewed-by: Greg Burd <greg(at)burd(dot)me>
Discussion: https://postgr.es/m/CAN4CZFOTQXMZvuPxweO4Fm7+sjrPJUqU-JvYKETLBxuhqgbPjw@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/34c11958b6f12a90c0ec9fca3ce502a32280c30d
Modified Files
--------------
.../test_bitmapset/expected/test_bitmapset.out | 24 ++++++++++++
.../modules/test_bitmapset/sql/test_bitmapset.sql | 10 +++++
src/test/modules/test_bitmapset/test_bitmapset.c | 44 ++++++++++++++++++++--
3 files changed, 75 insertions(+), 3 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fujii Masao | 2026-09-10 02:55:51 | pgsql: Fix REPACK command reporting in pg_stat_progress_cluster |
| Previous Message | Michael Paquier | 2026-09-10 02:04:08 | pgsql: test_extensible: Improve handling of incorrect inputs |