1--TEST-- 2Bug 72482 (Ilegal write/read access caused by gdImageAALine overflow) 3--SKIPIF-- 4<?php 5if (!extension_loaded('gd')) die('skip gd extension not available'); 6?> 7--FILE-- 8<?php 9require_once __DIR__ . DIRECTORY_SEPARATOR . 'func.inc'; 10 11$im = imagecreatetruecolor(10, 10); 12imagefilledrectangle($im, 0, 0, 9, 9, imagecolorallocate($im, 255, 255, 255)); 13imageantialias($im, true); 14imageline($im, 0, 0, 10, 10, imagecolorallocate($im, 0, 0, 0)); 15 16test_image_equals_file(__DIR__ . DIRECTORY_SEPARATOR . 'bug72482_2.png', $im); 17?> 18===DONE=== 19--EXPECT-- 20The images are equal. 21===DONE=== 22