imagegif() does not product interlaced gif images
| Bug #38214 | imagegif() does not product interlaced gif images | ||||
|---|---|---|---|---|---|
| Submitted: | 2006-07-26 00:47 UTC | Modified: | 2006-07-26 10:06 UTC | ||
| From: | gn-spark at bk dot ru | Assigned: | pajoye (profile) | ||
| Status: | Closed | Package: | GD related | ||
| PHP Version: | 5.1.4 | OS: | Win32 | ||
| Private report: | No | CVE-ID: | None | ||
[2006-07-26 00:47 UTC] 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.)
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2006-07-26 10:06 UTC] pajoye@php.net