pgsql: Refactor test_escape.c for additional ways of testing. - Mailing list pgsql-committers

From Noah Misch
Subject pgsql: Refactor test_escape.c for additional ways of testing.
Date
Msg-id E1uBuN8-000FUt-2J@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Refactor test_escape.c for additional ways of testing.

Start the file with static functions not specific to pe_test_vectors
tests.  This way, new tests can use them without disrupting the file's
layout.  Change report_result() PQExpBuffer arguments to plain strings.
Back-patch to v13 (all supported versions), for the next commit.

Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
Backpatch-through: 13
Security: CVE-2025-4207

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/45fe7e08f00ae90904da0a404159db08e1e7390b

Modified Files
--------------
src/test/modules/test_escape/test_escape.c | 162 +++++++++++++++--------------
1 file changed, 82 insertions(+), 80 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Translation updates
Next
From: Tom Lane
Date:
Subject: pgsql: Last-minute updates for release notes.