mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
a375d54785
Cf. PR #6787. Closes GH-6994.
20 lines
545 B
PHP
20 lines
545 B
PHP
--TEST--
|
|
libgd #101 (imagecreatefromgd can crash if gdImageCreate fails)
|
|
--EXTENSIONS--
|
|
gd
|
|
--SKIPIF--
|
|
<?php
|
|
if (!GD_BUNDLED) die("skip requires bundled GD library\n");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$im = imagecreatefromgd(__DIR__ . '/libgd00101.gd');
|
|
var_dump($im);
|
|
?>
|
|
--EXPECTF--
|
|
Warning: imagecreatefromgd(): Product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully
|
|
in %slibgd00101.php on line %d
|
|
|
|
Warning: imagecreatefromgd(): "%slibgd00101.gd" is not a valid GD file in %slibgd00101.php on line %d
|
|
bool(false)
|