pgsql: Fix type in test_escape test - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: Fix type in test_escape test
Date
Msg-id E1thXcK-006P84-10@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix type in test_escape test

On machines where char is unsigned this could lead to option parsing looping
endlessly. It's also too narrow a type on other hardware.

Found via Tom Lane's monitoring of the buildfarm.

Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
Security: CVE-2025-1094
Backpatch-through: 13

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4a6825c762112f085d6ee03bbce8e7abe2bf98e5

Modified Files
--------------
src/test/modules/test_escape/test_escape.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: pgsql: Add test of various escape functions
Next
From: Jeff Davis
Date:
Subject: pgsql: Lock table in ShareUpdateExclusive when importing index stats.