Skip to content

Commit 9d6bf82

Browse files
committed
Fix bug #79465 - use unsigneds as indexes.
1 parent 14fcc81 commit 9d6bf82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/standard/url.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ PHPAPI size_t php_url_decode(char *str, size_t len)
559559
#ifndef CHARSET_EBCDIC
560560
*dest = (char) php_htoi(data + 1);
561561
#else
562-
*dest = os_toebcdic[(char) php_htoi(data + 1)];
562+
*dest = os_toebcdic[(unsigned char) php_htoi(data + 1)];
563563
#endif
564564
data += 2;
565565
len -= 2;
@@ -651,7 +651,7 @@ PHPAPI size_t php_raw_url_decode(char *str, size_t len)
651651
#ifndef CHARSET_EBCDIC
652652
*dest = (char) php_htoi(data + 1);
653653
#else
654-
*dest = os_toebcdic[(char) php_htoi(data + 1)];
654+
*dest = os_toebcdic[(unsigned char) php_htoi(data + 1)];
655655
#endif
656656
data += 2;
657657
len -= 2;

0 commit comments

Comments
 (0)