1--TEST-- 2Bug #71912 (libgd: signedness vulnerability) 3--SKIPIF-- 4<?php 5 if(!extension_loaded('gd')){ die('skip gd extension not available'); } 6 if(!function_exists('imagecreatefromgd2')) die('skip imagecreatefromgd2() not available'); 7?> 8--FILE-- 9<?php 10imagecreatefromgd2(__DIR__ . DIRECTORY_SEPARATOR . "invalid_neg_size私はガラスを食べられます.gd2"); 11?> 12OK 13--EXPECTF-- 14Warning: imagecreatefromgd2(): "%s%einvalid_neg_size私はガラスを食べられます.gd2" is not a valid GD2 file in %s%ebug71912-mb.php on line %d 15OK 16