summaryrefslogtreecommitdiff
path: root/graphics/optipng/patches
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2009-05-28 08:07:50 +0000
committeradam <adam@pkgsrc.org>2009-05-28 08:07:50 +0000
commit117a977127a319189e6862dd579e5aea85ca5edb (patch)
tree49e0db91f08e406ae669621b76e9a2720231fe25 /graphics/optipng/patches
parent76d17738b642b31e9fb9eb007daccbe2037460d7 (diff)
downloadpkgsrc-117a977127a319189e6862dd579e5aea85ca5edb.tar.gz
Changes 0.6.3:
* Fixed a use-after-free error in the GIF reader. * Flushed the output log to display the current trial in real time. * Fixed an error in reporting unrecognized file formats. * Removed the requirement to "fix" TIFF files that contain unrecognized metadata. * Simplified the option abbreviation rules. Option names can now be abbreviated to their shortest unique prefix, as in X11 applications.
Diffstat (limited to 'graphics/optipng/patches')
-rw-r--r--graphics/optipng/patches/patch-ab36
-rw-r--r--graphics/optipng/patches/patch-ad12
-rw-r--r--graphics/optipng/patches/patch-ae12
3 files changed, 0 insertions, 60 deletions
diff --git a/graphics/optipng/patches/patch-ab b/graphics/optipng/patches/patch-ab
deleted file mode 100644
index a48f7cfeea6..00000000000
--- a/graphics/optipng/patches/patch-ab
+++ /dev/null
@@ -1,36 +0,0 @@
-$NetBSD: patch-ab,v 1.5 2009/03/02 06:20:34 kefren Exp $
-diff -ru optipng-0.6.2/lib/pngxtern/gif/gifread.c optipng-0.6.2.1/lib/pngxtern/gif/gifread.c
---- lib/pngxtern/gif/gifread.c 2006-08-10 20:17:00.000000000 -0400
-+++ lib/pngxtern/gif/gifread.c 2009-02-20 03:11:00.000000000 -0500
-@@ -219,8 +219,7 @@
- **/
- static void GIFReadNextExtension(struct GIFExtension *ext, FILE *stream)
- {
-- unsigned char *ptr;
-- unsigned int len;
-+ unsigned int offset, len;
- int count, label;
-
- GIF_FGETC(label, stream);
-@@ -233,7 +232,7 @@
- return;
- }
-
-- ptr = ext->Buffer;
-+ offset = 0;
- len = ext->BufferSize;
- for ( ;; )
- {
-@@ -243,10 +242,10 @@
- ext->BufferSize += 1024;
- ext->Buffer = realloc(ext->Buffer, ext->BufferSize);
- }
-- count = ReadDataBlock(ptr, stream);
-+ count = ReadDataBlock(ext->Buffer + offset, stream);
- if (count == 0)
- break;
-- ptr += count;
-+ offset += count;
- len -= count;
- }
- }
diff --git a/graphics/optipng/patches/patch-ad b/graphics/optipng/patches/patch-ad
deleted file mode 100644
index 6223effb2bc..00000000000
--- a/graphics/optipng/patches/patch-ad
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-ad,v 1.3 2009/03/02 06:20:34 kefren Exp $
-diff -ru optipng-0.6.2/src/optipng.c optipng-0.6.2.1/src/optipng.c
---- src/optipng.c 2008-11-09 23:56:00.000000000 -0500
-+++ src/optipng.c 2008-11-11 13:57:00.000000000 -0500
-@@ -542,6 +542,7 @@
- static void
- app_init(void)
- {
-+ setvbuf(stdout, NULL, _IONBF, 0);
- if (options.log_name != NULL)
- {
- /* Open the log file, line-buffered. */
diff --git a/graphics/optipng/patches/patch-ae b/graphics/optipng/patches/patch-ae
deleted file mode 100644
index 02b8fb70049..00000000000
--- a/graphics/optipng/patches/patch-ae
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-ae,v 1.1 2009/03/02 06:20:34 kefren Exp $
-diff -ru optipng-0.6.2/src/proginfo.h optipng-0.6.2.1/src/proginfo.h
---- src/proginfo.h 2008-11-09 23:56:00.000000000 -0500
-+++ src/proginfo.h 2009-02-22 23:38:00.000000000 -0500
-@@ -1,5 +1,5 @@
- #define PROGRAM_NAME "OptiPNG"
- #define PROGRAM_DESCRIPTION "Advanced PNG optimizer"
--#define PROGRAM_VERSION "0.6.2"
--#define PROGRAM_COPYRIGHT "Copyright (C) 2001-2008 Cosmin Truta"
-+#define PROGRAM_VERSION "0.6.2.1"
-+#define PROGRAM_COPYRIGHT "Copyright (C) 2001-2009 Cosmin Truta"
- #define PROGRAM_URI "http://optipng.sourceforge.net/"