mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
a375d54785
Cf. PR #6787. Closes GH-6994.
15 lines
356 B
PHP
15 lines
356 B
PHP
--TEST--
|
|
Bug 73868 (DOS vulnerability in gdImageCreateFromGd2Ctx())
|
|
--EXTENSIONS--
|
|
gd
|
|
--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)
|