Skip to content

Commit 9b92c1d

Browse files
committed
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.
1 parent f6eac76 commit 9b92c1d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? 2019, PHP 7.2.26
44

5+
- GD:
6+
. Fixed bug #78849 (GD build broken with -D SIGNED_COMPARE_SLOW). (cmb)
7+
58
- Intl:
69
. Fixed bug #78804 (Segmentation fault in Locale::filterMatches). (Stas)
710

ext/gd/libgd/gd_gif_out.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ compress(int init_bits, gdIOCtxPtr outfile, gdImagePtr im, GifCtx *ctx)
534534
output( (code_int)ctx->ClearCode, ctx );
535535

536536
#ifdef SIGNED_COMPARE_SLOW
537-
while ( (c = GIFNextPixel( im )) != (unsigned) EOF ) {
537+
while ( (c = GIFNextPixel( im, ctx )) != (unsigned) EOF ) {
538538
#else /*SIGNED_COMPARE_SLOW*/
539539
while ( (c = GIFNextPixel( im, ctx )) != EOF ) { /* } */
540540
#endif /*SIGNED_COMPARE_SLOW*/

0 commit comments

Comments
 (0)