]> 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:56 +0000 (12:12 -0500)
commit41343f84052eb53a900ea464a8ce16a548cab901
tree37f9846bd9883d8bdabe5a8e304d6c95364b3cc3
parent16ce519533bd03db726953db2364877a8944da4c
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