mirror of
https://github.com/php/php-src.git
synced 2025-01-21 19:24:16 +08:00
20 lines
463 B
Plaintext
20 lines
463 B
Plaintext
|
--TEST--
|
||
|
Bug #72482 (Ilegal write/read access caused by gdImageAALine overflow)
|
||
|
--SKIPIF--
|
||
|
<?php
|
||
|
if (!extension_loaded('gd')) die('skip gd extension not available');
|
||
|
?>
|
||
|
--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===
|