com php-src: Fix #78849: GD build broken with -D SIGNED_COMPA RE_SLOW: NEWS ext/gd/libgd/gd_gif_out.c

From: Date: Thu, 21 Nov 2019 08:59:26 +0000
Subject: com php-src: Fix #78849: GD build broken with -D SIGNED_COMPA RE_SLOW: NEWS ext/gd/libgd/gd_gif_out.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-109298@lists.php.net to get a copy of this message
Commit: 9b92c1d15415de0cdb14c8cf7b7575238ce380ca Author: Christoph M. Becker <cmbecker69@gmx.de> Thu, 21 Nov 2019 09:49:29 +0100 Parents: f6eac76b65e95b8b0f2c50f21cdf742215fe9b23 Branches: PHP-7.2 PHP-7..3 PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9b92c1d15415de0cdb14c8cf7b7575238ce380ca Log: Fix #78849: GD build broken with -D SIGNED_COMPARE_SLOW Apparently, this has not been tested for a long time, and might be a refactoring relict. Anyhow, we have to pass the context to GIFNextPixel as well. Bugs: https://bugs.php.net/78849 Changed paths: M NEWS M ext/gd/libgd/gd_gif_out.c Diff: diff --git a/NEWS b/NEWS index ecec337379a..c3d4783ebe8 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,9 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2019, PHP 7.2.26 +- GD: + . Fixed bug #78849 (GD build broken with -D SIGNED_COMPARE_SLOW). (cmb) + - Intl: . Fixed bug #78804 (Segmentation fault in Locale::filterMatches). (Stas) diff --git a/ext/gd/libgd/gd_gif_out.c b/ext/gd/libgd/gd_gif_out.c index cd4ea1529b0..c0a0433f4d7 100644 --- a/ext/gd/libgd/gd_gif_out.c +++ b/ext/gd/libgd/gd_gif_out.c @@ -534,7 +534,7 @@ compress(int init_bits, gdIOCtxPtr outfile, gdImagePtr im, GifCtx *ctx) output( (code_int)ctx->ClearCode, ctx ); #ifdef SIGNED_COMPARE_SLOW - while ( (c = GIFNextPixel( im )) != (unsigned) EOF ) { + while ( (c = GIFNextPixel( im, ctx )) != (unsigned) EOF ) { #else /*SIGNED_COMPARE_SLOW*/ while ( (c = GIFNextPixel( im, ctx )) != EOF ) { /* } */ #endif /*SIGNED_COMPARE_SLOW*/

« previous php.cvs (#109298) next »