Skip to content

Commit 6b6f7a0

Browse files
committed
add test
1 parent 8d45c4f commit 6b6f7a0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ext/gd/tests/gh16771.phpt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--TEST--
2+
GH-16771 (UBSan abort in ext/gd/libgd/gd.c:1372)
3+
--EXTENSIONS--
4+
gd
5+
--FILE--
6+
<?php
7+
$string_mb = base64_decode('5pel5pys6Kqe44OG44Kt44K544OIMzTvvJXvvJbml6XmnKzoqp7jg4bjgq3jgrnjg4g=');
8+
imagecreatefromstring($string_mb);
9+
--EXPECTF--
10+
Warning: imagecreatefromstring(): Data is not in a recognized format in %s on line %d

0 commit comments

Comments
 (0)