rpms/netpbm/devel netpbm-10.35-pnmmontagefix.patch, NONE, 1.1 netpbm-10.22-security2.patch, 1.4, 1.5 netpbm-10.23-security.patch, 1.19, 1.20 netpbm.spec, 1.125, 1.126

Jindrich Novy jnovy at fedoraproject.org
Tue Dec 23 20:37:43 UTC 2008


Author: jnovy

Update of /cvs/pkgs/rpms/netpbm/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25826

Modified Files:
	netpbm-10.22-security2.patch netpbm-10.23-security.patch 
	netpbm.spec 
Added Files:
	netpbm-10.35-pnmmontagefix.patch 
Log Message:
* Tue Dec 23 2008 Jindrich Novy <jnovy at redhat.com> 10.35.57-3
- unbreak ppmshadow and ppmrainbow (#476989)
- pnmmontage won't crash because of uninitialized memory usage


netpbm-10.35-pnmmontagefix.patch:

--- NEW FILE netpbm-10.35-pnmmontagefix.patch ---
diff -up netpbm-10.35.57/editor/pnmmontage.c.pnmmontagefix netpbm-10.35.57/editor/pnmmontage.c
--- netpbm-10.35.57/editor/pnmmontage.c.pnmmontagefix	2008-12-15 10:04:29.000000000 +0100
+++ netpbm-10.35.57/editor/pnmmontage.c	2008-12-23 20:09:01.000000000 +0100
@@ -346,6 +346,7 @@ main(int argc, char **argv)
   }
 
   pnm_readpaminit(imgs[0].file, &imgs[0], PAM_STRUCT_SIZE(tuple_type));
+  memset(&outimg, 0, sizeof(outimg));
   outimg.maxval = imgs[0].maxval;
   outimg.format = imgs[0].format;
   memcpy(outimg.tuple_type, imgs[0].tuple_type, sizeof(imgs[0].tuple_type));

netpbm-10.22-security2.patch:

Index: netpbm-10.22-security2.patch
===================================================================
RCS file: /cvs/pkgs/rpms/netpbm/devel/netpbm-10.22-security2.patch,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- netpbm-10.22-security2.patch	4 Aug 2008 07:05:23 -0000	1.4
+++ netpbm-10.22-security2.patch	23 Dec 2008 20:37:42 -0000	1.5
@@ -416,7 +416,7 @@
 -my $ourtmp = "$tmpdir/ppmshadow$$";
 -mkdir($ourtmp, 0777) or
 -    die("Unable to create directory for temporary files '$ourtmp");
-+chomp($ourtmp = `mktemp -d -t PPMshadow.XXXXXX`);
++my $ourtmp; chomp($ourtmp = `mktemp -d -t PPMshadow.XXXXXX`);
 +if ($? >> 8) {
 +    die "Can't create directory for temporary files";
 +}

netpbm-10.23-security.patch:

Index: netpbm-10.23-security.patch
===================================================================
RCS file: /cvs/pkgs/rpms/netpbm/devel/netpbm-10.23-security.patch,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- netpbm-10.23-security.patch	24 Jun 2008 09:38:25 -0000	1.19
+++ netpbm-10.23-security.patch	23 Dec 2008 20:37:42 -0000	1.20
@@ -1654,18 +1654,6 @@
      for (i = 0; i < iysize; i++) 
          for (j = 0; j < ixsize; j++) {
              fkernel[i*ixsize+j] = 1.0 / (1.0 + w * sqrt((double)
-diff -up netpbm-10.35.46/generator/ppmrainbow.security netpbm-10.35.46/generator/ppmrainbow
---- netpbm-10.35.46/generator/ppmrainbow.security	2008-06-24 08:58:57.000000000 +0200
-+++ netpbm-10.35.46/generator/ppmrainbow	2008-06-24 09:04:21.000000000 +0200
-@@ -11,7 +11,7 @@ my ($Twid, $Thgt, $tmpdir, $norepeat, $v
- # set defaults
- $Twid = 600;
- $Thgt = 8;
--$tmpdir = $ENV{"TMPDIR"} || "/tmp";
-+$tmpdir = $ENV{"TMPDIR"} || ".tmp";
- $norepeat = $FALSE;
- $verbose = $FALSE;
- 
 diff -up netpbm-10.35.46/lib/libpam.c.security netpbm-10.35.46/lib/libpam.c
 --- netpbm-10.35.46/lib/libpam.c.security	2008-06-24 08:59:03.000000000 +0200
 +++ netpbm-10.35.46/lib/libpam.c	2008-06-24 09:04:21.000000000 +0200


Index: netpbm.spec
===================================================================
RCS file: /cvs/pkgs/rpms/netpbm/devel/netpbm.spec,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -r1.125 -r1.126
--- netpbm.spec	19 Dec 2008 08:51:28 -0000	1.125
+++ netpbm.spec	23 Dec 2008 20:37:42 -0000	1.126
@@ -1,7 +1,7 @@
 Summary: A library for handling different graphics file formats
 Name: netpbm
 Version: 10.35.57
-Release: 2%{?dist}
+Release: 3%{?dist}
 # See copyright_summary for details
 License: BSD and GPLv2 and IJG and MIT and Public Domain
 Group: System Environment/Libraries
@@ -31,6 +31,7 @@
 Patch19: netpbm-10.35-gcc43.patch
 Patch20: netpbm-10.35-rgbtxt.patch
 Patch21: netpbm-10.35-pamtosvgsegfault.patch
+Patch22: netpbm-10.35-pnmmontagefix.patch
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: libjpeg-devel, libpng-devel, libtiff-devel, flex
 BuildRequires: libX11-devel, python, jasper-devel
@@ -92,6 +93,7 @@
 %patch19 -p1 -b .gcc43
 %patch20 -p1 -b .rgbtxt
 %patch21 -p1 -b .pamtosvgsegfault
+%patch22 -p1 -b .pnmmontagefix
 
 ##mv shhopt/shhopt.h shhopt/pbmshhopt.h
 ##perl -pi -e 's|shhopt.h|pbmshhopt.h|g' `find -name "*.c" -o -name "*.h"` ./GNUmakefile
@@ -219,6 +221,10 @@
 %{_datadir}/netpbm/
 
 %changelog
+* Tue Dec 23 2008 Jindrich Novy <jnovy at redhat.com> 10.35.57-3
+- unbreak ppmshadow and ppmrainbow (#476989)
+- pnmmontage won't crash because of uninitialized memory usage
+
 * Fri Dec 19 2008 Jindrich Novy <jnovy at redhat.com> 10.35.57-2
 - fix segfault in pamtosvg caused by not reverting "sentinel value" (#476989)
 




More information about the fedora-extras-commits mailing list