23 lines
502 B
PHP
23 lines
502 B
PHP
--TEST--
|
|
GH-16559 (UBSan abort in ext/gd/libgd/gd_interpolation.c:1007)
|
|
--EXTENSIONS--
|
|
gd
|
|
--SKIPIF--
|
|
<?php
|
|
if (!GD_BUNDLED) {
|
|
/* external libgd bugs are not our problem */
|
|
die("skip meaningful only for bundled libgd\n");
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$input = imagecreatefrompng(__DIR__ . '/gh10614.png');
|
|
for ($angle = 0; $angle <= 270; $angle += 90) {
|
|
$output = imagerotate($input, $angle, 0);
|
|
}
|
|
var_dump(imagescale($output, -1, 64, IMG_BICUBIC));
|
|
?>
|
|
--EXPECT--
|
|
object(GdImage)#2 (0) {
|
|
}
|