"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "GD.xs" between
GD-2.71.tar.gz and GD-2.72.tar.gz

About: GD is a Perl5 interface to Thomas Boutell’s gd graphics library.

GD.xs  (GD-2.71):GD.xs  (GD-2.72)
skipping to change at line 1024 skipping to change at line 1024
int colors int colors
int samplefactor int samplefactor
PROTOTYPE: $;$$ PROTOTYPE: $;$$
CODE: CODE:
RETVAL = gdImageNeuQuant(image,colors,samplefactor); RETVAL = gdImageNeuQuant(image,colors,samplefactor);
if (!RETVAL) if (!RETVAL)
XSRETURN_UNDEF; XSRETURN_UNDEF;
OUTPUT: OUTPUT:
RETVAL RETVAL
# beware of CVE 2019-6977 https://bugs.php.net/bug.php?id=77270
# refuse to match truecolor with palette
int int
gdcolorMatch(image, im2) gdcolorMatch(image, im2)
GD::Image image GD::Image image
GD::Image im2 GD::Image im2
PROTOTYPE: $$ PROTOTYPE: $$
CODE: CODE:
#if GD_VERSION <= 20205
if (gdImageTrueColor(image) ^ gdImageTrueColor(im2))
XSRETURN_UNDEF;
else
#endif
RETVAL = gdImageColorMatch(image,im2); RETVAL = gdImageColorMatch(image,im2);
OUTPUT: OUTPUT:
RETVAL RETVAL
#endif #endif
void void
gdrgb(image,color) gdrgb(image,color)
GD::Image image GD::Image image
int color int color
 End of changes. 2 change blocks. 
0 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)