xref: /PHP-8.4/ext/gd/tests/gh16771.phpt (revision 4124b04e)
1--TEST--
2GH-16771 (UBSan abort in ext/gd/libgd/gd.c:1372)
3--EXTENSIONS--
4gd
5--FILE--
6<?php
7$string_mb = base64_decode('5pel5pys6Kqe44OG44Kt44K544OIMzTvvJXvvJbml6XmnKzoqp7jg4bjgq3jgrnjg4g=');
8imagecreatefromstring($string_mb);
9--EXPECTF--
10Warning: imagecreatefromstring(): Data is not in a recognized format in %s on line %d
11