pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Refactor test_escape.c for additional ways of testing.
Date: Mon, 05 May 2025 11:52:35 +0000
Message-ID: <E1uBuN8-000FUe-21@gemulon.postgresql.org> (raw)

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
------
master

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

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



view thread (6+ messages)

Message-ID: <E1uBuN8-000FUe-21@gemulon.postgresql.org>
Permalink:  ../E1uBuN8-000FUe-21@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1uBuN8-000FUe-21@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: noah@leadboat.com, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Refactor test_escape.c for additional ways of testing.
  In-Reply-To: <E1uBuN8-000FUe-21@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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