Date: Thu, 13 Jun 2013 13:26:22 GMT From: Sergey Kandaurov <pluknet@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/179537: [patch] graphics/gd: fix to enable interlaced gif Message-ID: <201306131326.r5DDQM1l022542@oldred.freebsd.org> Resent-Message-ID: <201306131330.r5DDU0TZ004664@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 179537 >Category: ports >Synopsis: [patch] graphics/gd: fix to enable interlaced gif >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jun 13 13:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Sergey Kandaurov >Release: FreeBSD 9.1 >Organization: >Environment: >Description: It was fixed 5 years ago in libgd repo (never got to released versions). >How-To-Repeat: >Fix: Patch attached with submission follows: Index: graphics/gd/Makefile =================================================================== --- graphics/gd/Makefile (revision 320799) +++ graphics/gd/Makefile (working copy) @@ -3,7 +3,7 @@ PORTNAME= gd PORTVERSION= 2.0.35 -PORTREVISION?= 8 +PORTREVISION?= 9 PORTEPOCH= 1 CATEGORIES+= graphics MASTER_SITES= http://www.libgd.org/releases/ \ Index: graphics/gd/files/patch-gd_gif_out.c =================================================================== --- graphics/gd/files/patch-gd_gif_out.c (revision 0) +++ graphics/gd/files/patch-gd_gif_out.c (working copy) @@ -0,0 +1,24 @@ +--- gd_gif_out.c~ 2007-01-04 15:44:31.000000000 +0300 ++++ gd_gif_out.c 2013-06-13 17:11:11.000000000 +0400 +@@ -586,9 +586,9 @@ + int InitCodeSize; + int i; + GifCtx ctx; ++ memset(&ctx, 0, sizeof(ctx)); + ctx.Interlace = GInterlace; + ctx.in_count = 1; +- memset(&ctx, 0, sizeof(ctx)); + ColorMapSize = 1 << BitsPerPixel; + + RWidth = ctx.Width = GWidth; +@@ -735,9 +735,9 @@ + int InitCodeSize; + int i; + GifCtx ctx; ++ memset(&ctx, 0, sizeof(ctx)); + ctx.Interlace = GInterlace; + ctx.in_count = 1; +- memset(&ctx, 0, sizeof(ctx)); + ColorMapSize = 1 << BitsPerPixel; + + if (LeftOfs < 0) LeftOfs = 0; >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306131326.r5DDQM1l022542>