mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
http parser code assumes char is signed
A char can be either signed or unsigned, and on PowerPC and ARM it is unsigned. The following code will always be false on these architectures: if (c == -1) goto error;
This commit is contained in:
parent
a97f764472
commit
275009d0bd
@ -326,7 +326,8 @@ size_t php_http_parser_execute (php_http_parser *parser,
|
||||
const char *data,
|
||||
size_t len)
|
||||
{
|
||||
char c, ch;
|
||||
char ch;
|
||||
signed char c;
|
||||
const char *p = data, *pe;
|
||||
size_t to_read;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user