]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix type in test_escape test
authorAndres Freund <andres@anarazel.de>
Mon, 10 Feb 2025 17:09:23 +0000 (12:09 -0500)
committerAndres Freund <andres@anarazel.de>
Mon, 10 Feb 2025 17:12:58 +0000 (12:12 -0500)
commita085fa73169d6c0df079cfa4ddfeade812368a64
tree4ba862aa23e1bf8655f857f0c9c051d3637fa3b9
parent57bda2508f1c666fd18f2b233823b7c98308226b
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
src/test/modules/test_escape/test_escape.c