bug72482.phpt 392 B

1234567891011121314151617
  1. --TEST--
  2. Bug #72482 (Ilegal write/read access caused by gdImageAALine overflow)
  3. --EXTENSIONS--
  4. gd
  5. --FILE--
  6. <?php
  7. $img = imagecreatetruecolor(13, 1007);
  8. imageantialias($img, true);
  9. imageline($img, 0, 0, 1073745919, 1073745919, 4096);
  10. $img = imagecreatetruecolor(100, 100);
  11. imageantialias($img, true);
  12. imageline($img, 1094795585, 0, 2147483647, 255, 0xff);
  13. ?>
  14. ===DONE===
  15. --EXPECT--
  16. ===DONE===