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.
18 lines
392 B
PHP
18 lines
392 B
PHP
--TEST--
|
|
Bug #72482 (Ilegal write/read access caused by gdImageAALine overflow)
|
|
--EXTENSIONS--
|
|
gd
|
|
--FILE--
|
|
<?php
|
|
$img = imagecreatetruecolor(13, 1007);
|
|
imageantialias($img, true);
|
|
imageline($img, 0, 0, 1073745919, 1073745919, 4096);
|
|
|
|
$img = imagecreatetruecolor(100, 100);
|
|
imageantialias($img, true);
|
|
imageline($img, 1094795585, 0, 2147483647, 255, 0xff);
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
===DONE===
|