mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
5693474997
We must not allow negative color values be passed to
gdImageFillToBorder(), because that can lead to infinite recursion
since the recursion termination condition will not necessarily be met.
(cherry picked from commit 863d37ea66
)
15 lines
287 B
PHP
15 lines
287 B
PHP
--TEST--
|
|
Bug #72696 (imagefilltoborder stackoverflow on truecolor images)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('gd')) die('skip gd extension not available');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$im = imagecreatetruecolor(10, 10);
|
|
imagefilltoborder($im, 0, 0, 1, -2);
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
===DONE===
|