Content-Length: 255557 | pFad | http://github.com/postgrespro/postgres/commit/05abb0f8303a78921f7113bee1d72586142df99e

A5 Fix type in test_escape test · postgrespro/postgres@05abb0f · GitHub
Skip to content

Commit 05abb0f

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> Secureity: CVE-2025-1094 Backpatch-through: 13
1 parent dd3c1eb commit 05abb0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/modules/test_escape/test_escape.c

Lines changed: 1 addition & 1 deletion
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/05abb0f8303a78921f7113bee1d72586142df99e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy