summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-09-19 22:03:26 +0000
committerMike Frysinger <vapier@gentoo.org>2010-09-19 22:03:26 +0000
commit8f28f1b4b8c9dcef6de9d2ffb08e3fe5115f40e0 (patch)
treebb082e0fd84fa1cecbb749ffd77d008f6974cf09 /media-libs/netpbm
parentVersion bump, bug #338053. (diff)
downloadgentoo-2-8f28f1b4b8c9dcef6de9d2ffb08e3fe5115f40e0.tar.gz
gentoo-2-8f28f1b4b8c9dcef6de9d2ffb08e3fe5115f40e0.tar.bz2
gentoo-2-8f28f1b4b8c9dcef6de9d2ffb08e3fe5115f40e0.zip
use patch from upstream -- no functional changes
Diffstat (limited to 'media-libs/netpbm')
-rw-r--r--media-libs/netpbm/files/netpbm-10.51.00-ppmtompeg-free.patch40
1 files changed, 30 insertions, 10 deletions
diff --git a/media-libs/netpbm/files/netpbm-10.51.00-ppmtompeg-free.patch b/media-libs/netpbm/files/netpbm-10.51.00-ppmtompeg-free.patch
index ee5be69c14c5..0c1e48549b1b 100644
--- a/media-libs/netpbm/files/netpbm-10.51.00-ppmtompeg-free.patch
+++ b/media-libs/netpbm/files/netpbm-10.51.00-ppmtompeg-free.patch
@@ -1,15 +1,35 @@
-addedSourceP is a pointer to a struct declared on the stack, so we cant
-call free() on it
+fix from upstream
-e-mailed to upstream maintainer already
+------------------------------------------------------------------------
+r1285 | giraffedata | 2010-09-18 16:13:39 -0400 (Sat, 18 Sep 2010) | 1 line
---- converter/ppm/ppmtompeg/param.c
-+++ converter/ppm/ppmtompeg/param.c
-@@ -295,7 +295,6 @@ mergeInputSource(struct inputSource * co
+Fix free of non-allocated memory
+
+Index: converter/ppm/ppmtompeg/param.c
+===================================================================
+--- converter/ppm/ppmtompeg/param.c (revision 1284)
++++ converter/ppm/ppmtompeg/param.c (revision 1285)
+@@ -283,8 +283,8 @@ GetFrameRate(const char * const p)
+
+
+ static void
+-mergeInputSource(struct inputSource * const baseSourceP,
+- struct inputSource * const addedSourceP) {
++mergeInputSource(struct inputSource * const baseSourceP,
++ const struct inputSource * const addedSourceP) {
+
+ unsigned int i;
+
+@@ -294,12 +294,6 @@ mergeInputSource(struct inputSource * co
+ for (i = 0; i < addedSourceP->numInputFileEntries; ++i)
baseSourceP->inputFileEntries[baseSourceP->numInputFileEntries++] =
addedSourceP->inputFileEntries[i];
-
+-
- free(addedSourceP);
- /* Note the space allocated for the *addedSourceP input file
- entries themselves is still allocated, and used by
- *baseSourceP.
+- /* Note the space allocated for the *addedSourceP input file
+- entries themselves is still allocated, and used by
+- *baseSourceP.
+- */
+ }
+
+