mirror of
https://github.com/php/php-src.git
synced 2024-12-20 15:30:38 +08:00
17 lines
427 B
Plaintext
17 lines
427 B
Plaintext
|
--TEST--
|
||
|
Bug 73868 (DOS vulnerability in gdImageCreateFromGd2Ctx())
|
||
|
--SKIPIF--
|
||
|
<?php
|
||
|
if (!extension_loaded('gd')) die('skip gd extension not available');
|
||
|
?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
var_dump(imagecreatefromgd2(__DIR__ . DIRECTORY_SEPARATOR . 'bug73868.gd2'));
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Warning: imagecreatefromgd2(): gd2: EOF while reading
|
||
|
in %s on line %d
|
||
|
|
||
|
Warning: imagecreatefromgd2(): '%s' is not a valid GD2 file in %s on line %d
|
||
|
bool(false)
|