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