mirror of
https://github.com/php/php-src.git
synced 2026-04-16 20:41:18 +02:00
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===
|