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:53 +0000 (12:12 -0500)
commit05abb0f8303a78921f7113bee1d72586142df99e
treec3f92eceb993dc48e7ed0e7d337144820d164b0f
parentdd3c1eb38e9add293f8be59b6aec7574e8584bdb
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