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:
Stanislav Malyshev 2018-04-22 20:28:35 -07:00
commit 83e7618f05

View file

@ -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;
}