php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /php-7.1.11/ext/gd/tests/ |
files >> //php-7.1.11/ext/gd/tests/bug66339-mb.phpt |
--TEST-- Bug #66339 (PHP segfaults in imagexbm) --SKIPIF-- <?php if (!extension_loaded('gd')) die('skip gd extension not available'); ?> --FILE-- <?php $im = imagecreate(8, 8); imagecolorallocate($im, 0, 0, 0); // background $white = imagecolorallocate($im, 255, 255, 255); imagefilledrectangle($im, 2, 2, 6, 6, $white); imagexbm($im, NULL); echo "------------\n"; imagexbm($im, './bug66339私はガラスを食べられます.xbm'); echo file_get_contents('./bug66339私はガラスを食べられます.xbm'); ?> --CLEAN-- <?php unlink('./bug66339私はガラスを食べられます.xbm'); ?> --EXPECTF-- #define image_width 8 #define image_height 8 static unsigned char image_bits[] = { 0xFF, 0xFF, 0x83, 0x83, 0x83, 0x83, 0x83, 0xFF}; ------------ #define bug66339%swidth 8 #define bug66339%sheight 8 static unsigned char bug66339%sbits[] = { 0xFF, 0xFF, 0x83, 0x83, 0x83, 0x83, 0x83, 0xFF};y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`