Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 979205e

Browse files
committed
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
1 parent 32c3400 commit 979205e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/modules/test_escape/test_escape.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ int
740740
main(int argc, char *argv[])
741741
{
742742
pe_test_config tc = {0};
743-
char c;
743+
int c;
744744
int option_index;
745745

746746
static const struct option long_options[] = {

0 commit comments

Comments
 (0)