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/github_bug_215.phpt |
--TEST-- Github #215 (imagefilltoborder stack overflow when invalid pallete index used) --SKIPIF-- <?php if (!extension_loaded("gd")) die("skip GD not present"); if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.2', '<')) { die("skip test requires GD 2.2.2 or higher"); } ?> --FILE-- <?php $image = imagecreate( 10, 10 ); $bgd = imagecolorallocate( $image, 0, 0, 0 ); $border = imagecolorallocate( $image, 255, 0, 0 ); $fillcolor = imagecolorallocate( $image, 255, 0, 0 ); /* Use unallocated color index */ imagefilltoborder( $image, 0,0, $border+10, $fillcolor); echo "#1 passes\n"; /* Use negative color index */ imagefilltoborder( $image, 0,0, -$border, $fillcolor); echo "#2 passes\n"; /* Use unallocated color index */ imagefilltoborder( $image, 0,0, $border, $fillcolor+10); echo "#3 passes\n"; /* Use negative color index */ imagefilltoborder( $image, 0,0, $border, -$fillcolor); echo "#4 passes\n"; /* Use negative color index */ imagefilltoborder( $image, 0,0, $border+10, $fillcolor+10); echo "#5 passes"; ?> --EXPECT-- #1 passes #2 passes #3 passes #4 passes #5 passesy~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`