diff options
author | Stanislav Malyshev <stas@php.net> | 2019-01-06 12:50:10 -0800 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2019-01-06 12:50:10 -0800 |
commit | 0f148839b5944df8f36624df53aa8d7199718f19 (patch) | |
tree | 83544948712a768192d7f809c7683ecf48a4efe9 /ext/phar/tests | |
parent | 3d9624e126366fe924f1374206e29c88a75c9361 (diff) | |
parent | e617f03066ce81d26f56c06d6bd7787c7de08703 (diff) | |
download | php-git-0f148839b5944df8f36624df53aa8d7199718f19.tar.gz |
Merge branch 'PHP-7.3'
* PHP-7.3:
Fix #77367: Negative size parameter in mb_split
Fix #77369 - memcpy with negative length via crafted DNS response
Fix more issues with encodilng length
Fix #77270: imagecolormatch Out Of Bounds Write on Heap
Fix bug #77380 (Global out of bounds read in xmlrpc base64 code)
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
Fix #77269: Potential unsigned underflow in gdImageScale
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
Regenerate certs for openssl tests
Diffstat (limited to 'ext/phar/tests')
-rw-r--r-- | ext/phar/tests/bug77247.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/phar/tests/bug77247.phpt b/ext/phar/tests/bug77247.phpt new file mode 100644 index 0000000000..588975f9f2 --- /dev/null +++ b/ext/phar/tests/bug77247.phpt @@ -0,0 +1,14 @@ +--TEST-- +PHP bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext) +--SKIPIF-- +<?php if (!extension_loaded("phar")) die("skip"); ?> +--FILE-- +<?php +try { +var_dump(new Phar('a/.b', 0,'test.phar')); +} catch(UnexpectedValueException $e) { + echo "OK"; +} +?> +--EXPECT-- +OK
\ No newline at end of file |