xref: /PHP-7.3/ext/gd/tests/bug75571.phpt (revision 8d6e9588)
1--TEST--
2Bug #75571 (Infinite loop in GIF reading causing DoS)
3--SKIPIF--
4<?php
5if (!extension_loaded('gd')) die('skip gd extension not available');
6?>
7--FILE--
8<?php
9var_dump(imagecreatefromgif(__DIR__ . '/bug75571.gif'));
10?>
11===DONE===
12--EXPECTF--
13Warning: imagecreatefromgif(): '%s' is not a valid GIF file in %s on line %d
14bool(false)
15===DONE===
16