]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Refactor test_escape.c for additional ways of testing.
authorNoah Misch <noah@leadboat.com>
Mon, 5 May 2025 11:52:04 +0000 (04:52 -0700)
committerNoah Misch <noah@leadboat.com>
Mon, 5 May 2025 11:52:08 +0000 (04:52 -0700)
commit258cde839d902ad9dd41cbd7ab58ebf4ba086874
treebde266ba15d384fb74871fe489f3dddff8f94089
parent9dcd8c723c6d0bdf40d408cce83472c527212ac4
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
src/test/modules/test_escape/test_escape.c