#38214 [Opn->Fbk]: imagegif() does not product interlaced gif images

From: Date: Wed, 26 Jul 2006 07:04:45 +0000
Subject: #38214 [Opn->Fbk]: imagegif() does not product interlaced gif images
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-99894@lists.php.net to get a copy of this message
 ID:               38214
 Updated by:       tony2001@php.net
 Reported By:      gn-spark at bk dot ru
-Status:           Open
+Status:           Feedback
 Bug Type:         GD related
 Operating System: Win32
 PHP Version:      5.1.4
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip




Previous Comments:
------------------------------------------------------------------------

[2006-07-26 00:47:39] gn-spark at bk dot ru

Description:
------------
imagegif() does not product interlaced gif images when interlace bit is
on. memset() overwrites actual value of interlace bit in
php-5.1.4\ext\gd\libgd\gd_gif_out.c at line 270.

Reproduce code:
---------------
php-5.1.4\ext\gd\libgd\gd_gif_out.c:268

        ctx.Interlace = GInterlace;
	ctx.in_count = 1;
	memset(&ctx, 0, sizeof(ctx));

Expected result:
----------------
	memset(&ctx, 0, sizeof(ctx));
        ctx.Interlace = GInterlace;

(ctx.in_count is later assigned to 1 in function compress() at line
514.)



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38214&edit=1


Thread (3 messages)

« previous php.bugs (#99894) next »