From: Anatol Belski Date: Sun, 27 Mar 2016 22:45:19 +0000 (+0200) Subject: Fixed bug #71527 Buffer over-write in finfo_open with malformed magic file X-Git-Tag: php-5.6.21RC1~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5272184a1ed0c5c6144e80bed6fb1951601ec3bc;p=php Fixed bug #71527 Buffer over-write in finfo_open with malformed magic file The actual fix is applying the upstream patch from https://github.com/file/file/commit/6713ca45e7757297381f4b4cdb9cf5e624a9ad36 --- diff --git a/ext/fileinfo/tests/bug68996.phpt b/ext/fileinfo/tests/bug68996.phpt index 9fa2190307..da208d35bc 100644 --- a/ext/fileinfo/tests/bug68996.phpt +++ b/ext/fileinfo/tests/bug68996.phpt @@ -1,14 +1,11 @@ --TEST-- Bug #68996 (Invalid free of CG(interned_empty_string)) --SKIPIF-- - --INI-- html_errors=1 +--ENV-- +USE_ZEND_ALLOC=0 --FILE-- Warning: : failed to open stream: No such file or directory in %sbug68996.php on line %d

-Warning: finfo_open(): in %sbug68996.php on line %d
+Warning: finfo_open(): Failed to load magic database at '%s�c'. in %sbug68996.php on line %d