xref: /PHP-8.2/ext/gd/tests/bug73213.phpt (revision a375d547)
1--TEST--
2Bug #73213 (Integer overflow in imageline() with antialiasing)
3--EXTENSIONS--
4gd
5--FILE--
6<?php
7require_once __DIR__ . DIRECTORY_SEPARATOR . 'func.inc';
8
9$im = imagecreatetruecolor(32768, 1);
10$black = imagecolorallocate($im, 0, 0, 0);
11imageantialias($im, true);
12
13imageline($im, 0,0, 32767,0, $black);
14
15test_image_equals_file(__DIR__ . DIRECTORY_SEPARATOR . 'bug73213.png', $im);
16?>
17--EXPECT--
18The images are equal.
19