xref: /PHP-7.4/ext/gd/tests/bug72482.phpt (revision 1b5543b8)
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
9$img = imagecreatetruecolor(13, 1007);
10imageantialias($img, true);
11imageline($img, 0, 0, 1073745919, 1073745919, 4096);
12
13$img = imagecreatetruecolor(100, 100);
14imageantialias($img, true);
15imageline($img, 1094795585, 0, 2147483647, 255, 0xff);
16?>
17===DONE===
18--EXPECT--
19===DONE===
20