xref: /php-src/ext/gd/tests/gh16559.phpt (revision e1e1e64a)
1--TEST--
2GH-16559 (UBSan abort in ext/gd/libgd/gd_interpolation.c:1007)
3--EXTENSIONS--
4gd
5--FILE--
6<?php
7$input = imagecreatefrompng(__DIR__ . '/gh10614.png');
8for ($angle = 0; $angle <= 270; $angle += 90) {
9	$output = imagerotate($input, $angle, 0);
10}
11var_dump(imagescale($output, -1, 64, IMG_BICUBIC));
12?>
13--EXPECT--
14object(GdImage)#2 (0) {
15}
16