xref: /PHP-8.1/ext/phar/tests/bug73768.phpt (revision 74859783)
1--TEST--
2Phar: PHP bug #73768: Memory corruption when loading hostile phar
3--EXTENSIONS--
4phar
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