xref: /PHP-7.3/ext/phar/tests/bug73768.phpt (revision 48f0f73f)
1--TEST--
2Phar: PHP bug #73768: Memory corruption when loading hostile phar
3--SKIPIF--
4<?php if (!extension_loaded("phar")) die("skip"); ?>
5--FILE--
6<?php
7chdir(__DIR__);
8try {
9$p = Phar::LoadPhar('bug73768.phar', 'alias.phar');
10echo "OK\n";
11} catch(PharException $e) {
12	echo $e->getMessage();
13}
14?>
15--EXPECTF--
16internal corruption of phar "%sbug73768.phar" (truncated manifest header)
17