mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Prevent possible integer overflow
This commit is contained in:
parent
294c28f885
commit
fd28dfc569
1 changed files with 1 additions and 1 deletions
|
@ -1383,7 +1383,7 @@ static int get_http_body(php_stream *stream, int close, char *headers, char **r
|
|||
}
|
||||
|
||||
} else if (header_length) {
|
||||
if (header_length < 0) {
|
||||
if (header_length < 0 || header_length >= INT_MAX) {
|
||||
return FALSE;
|
||||
}
|
||||
http_buf = safe_emalloc(1, header_length, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue