mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02: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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue