xref: /PHP-7.0/ext/phar/tests/bug69324.phpt (revision 9faaee66)
1--TEST--
2Bug #69324: Buffer Over-read in unserialize when parsing Phar
3--SKIPIF--
4<?php
5if (!extension_loaded("phar")) die("skip");
6?>
7--FILE--
8<?php
9try {
10$p = new Phar(dirname(__FILE__).'/bug69324.phar', 0);
11$meta=$p->getMetadata();
12var_dump($meta);
13} catch(Exception $e) {
14	echo $e->getMessage();
15}
16--EXPECTF--
17internal corruption of phar "%s" (truncated manifest entry)