mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
We port this modification[1] from libgd into our bundled libgd, because
the change makes sense, and we want the code bases to stay in sync as
close as possible.
We also apply a quick fix to the respective test.
[1] <f0a059be6c>
24 lines
593 B
PHP
24 lines
593 B
PHP
--TEST--
|
|
Bug #73869 (Signed Integer Overflow gd_io.c)
|
|
--EXTENSIONS--
|
|
gd
|
|
--SKIPIF--
|
|
<?php
|
|
if (!GD_BUNDLED && version_compare(GD_VERSION, '2.3.3', '>=')) {
|
|
die("skip test requires GD 2.3.2 or older");
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
var_dump(imagecreatefromgd2(__DIR__ . DIRECTORY_SEPARATOR . 'bug73869a.gd2'));
|
|
var_dump(imagecreatefromgd2(__DIR__ . DIRECTORY_SEPARATOR . 'bug73869b.gd2'));
|
|
?>
|
|
--EXPECTF--
|
|
%A
|
|
Warning: imagecreatefromgd2(): "%s" is not a valid GD2 file in %s on line %d
|
|
bool(false)
|
|
|
|
%A
|
|
Warning: imagecreatefromgd2(): "%s" is not a valid GD2 file in %s on line %d
|
|
bool(false)
|