xref: /PHP-8.0/ext/gd/tests/bug75571.phpt (revision 4e6fbb0a)
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--EXPECTF--
12Warning: imagecreatefromgif(): "%s" is not a valid GIF file in %s on line %d
13bool(false)
14