mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
a375d54785
Cf. PR #6787. Closes GH-6994.
22 lines
487 B
PHP
22 lines
487 B
PHP
--TEST--
|
|
Bug #73279 (Integer overflow in gdImageScaleBilinearPalette())
|
|
--EXTENSIONS--
|
|
gd
|
|
--SKIPIF--
|
|
<?php
|
|
if (GD_BUNDLED || version_compare(GD_VERSION, '2.2.4', '>=')) {
|
|
die('skip only for external libgd < 2.2.4');
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$src = imagecreate(100, 100);
|
|
imagecolorallocate($src, 255, 255, 255);
|
|
$dst = imagescale($src, 200, 200, IMG_BILINEAR_FIXED);
|
|
printf("color: %x\n", imagecolorat($dst, 99, 99));
|
|
?>
|
|
--XFAIL--
|
|
Bug #330 has not yet been fixed
|
|
--EXPECT--
|
|
color: ffffff
|