pgsql: Fix type in test_escape test

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix type in test_escape test
Date: 2025-02-10 17:30:44
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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(at)sss(dot)pgh(dot)pa(dot)us>
Security: CVE-2025-1094
Backpatch-through: 13

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a085fa73169d6c0df079cfa4ddfeade812368a64

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

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2025-02-10 20:59:25 pgsql: Lock table in ShareUpdateExclusive when importing index stats.
Previous Message Andres Freund 2025-02-10 15:09:49 pgsql: Add test of various escape functions