blob: 2963f1c1041de5f8c57ae6dd8b170445d6f2b82f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
--TEST--
Bug #72709 (imagesetstyle() causes OOB read for empty $styles)
--SKIPIF--
<?php
if (!extension_loaded('gd')) die('skip ext/gd not available');
?>
--FILE--
<?php
$im = imagecreatetruecolor(1, 1);
try {
var_dump(imagesetstyle($im, array()));
}
catch (\Error $ex) {
echo $ex->getMessage() . "\n";
}
imagesetpixel($im, 0, 0, IMG_COLOR_STYLED);
imagedestroy($im);
?>
====DONE====
--EXPECT--
Styles array must not be empty
====DONE====
|