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:13:02 +0000 (12:13 -0500)
commit7beb2af5e635304334820895e49662fbf08a3702
treebcb9fdd6665b4835668b15d6669654586134a9b6
parent9dc952d9a077d4c5407b2da751d2e985d83e4924
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