mirror of
https://github.com/php/php-src.git
synced 2025-08-20 01:14:28 +02:00
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1: Add a bit of defensive conding for bug #76155
This commit is contained in:
commit
83e7618f05
1 changed files with 1 additions and 1 deletions
|
@ -1835,7 +1835,7 @@ static int phar_check_str(const char *fname, const char *ext_str, int ext_len, i
|
|||
char test[51];
|
||||
const char *pos;
|
||||
|
||||
if (ext_len >= 50) {
|
||||
if (ext_len < 0 || ext_len >= 50) {
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue