rpms/netpbm/devel netpbm-10.35-pbmtomacp.patch, NONE, 1.1 netpbm.spec, 1.86, 1.87

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Fri Feb 2 13:13:32 UTC 2007


Author: jnovy

Update of /cvs/dist/rpms/netpbm/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv5070

Modified Files:
	netpbm.spec 
Added Files:
	netpbm-10.35-pbmtomacp.patch 
Log Message:
- fix pbmtomacp buffer overflow (#226969)


netpbm-10.35-pbmtomacp.patch:
 pbmtomacp.c |    3 ---
 1 files changed, 3 deletions(-)

--- NEW FILE netpbm-10.35-pbmtomacp.patch ---
--- netpbm-10.35/converter/pbm/pbmtomacp.c.pbmtomacp	2007-01-29 10:11:08.000000000 +0100
+++ netpbm-10.35/converter/pbm/pbmtomacp.c	2007-02-02 13:55:23.000000000 +0100
@@ -38,7 +38,6 @@
   int argn, rows, cols;
   int left,bottom,right,top;
   int lflg, rflg, tflg, bflg;
-  char name[100];
   const char * const usage = "[-l left] [-r right] [-b bottom] [-t top] [pbmfile]";
 
 
@@ -84,11 +83,9 @@
 
   if ( argn == argc )
   { ifp = stdin;
-    strcpy( name, "noname" );
   }
   else
   { ifp = pm_openr( argv[argn] );
-    strcpy( name, argv[argn] );
     ++argn;
   }
 


Index: netpbm.spec
===================================================================
RCS file: /cvs/dist/rpms/netpbm/devel/netpbm.spec,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -r1.86 -r1.87
--- netpbm.spec	29 Jan 2007 12:52:55 -0000	1.86
+++ netpbm.spec	2 Feb 2007 13:13:30 -0000	1.87
@@ -1,7 +1,7 @@
 Summary: A library for handling different graphics file formats.
 Name: netpbm
 Version: 10.35
-Release: 10%{?dist}
+Release: 11%{?dist}
 License: freeware
 Group: System Environment/Libraries
 URL: http://netpbm.sourceforge.net/
@@ -23,6 +23,7 @@
 Patch14: netpbm-10.34-pamscale.patch
 Patch15: netpbm-10.35-ppmquantall.patch
 Patch16: netpbm-10.35-pbmtog3segfault.patch
+Patch17: netpbm-10.35-pbmtomacp.patch
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: libjpeg-devel, libpng-devel, libtiff-devel, perl, flex
 BuildRequires: libX11-devel
@@ -83,6 +84,7 @@
 %patch14 -p1 -b .pamscale
 %patch15 -p1 -b .pqall
 %patch16 -p1 -b .pbmtog3segfault
+%patch17 -p1 -b .pbmtomacp
 
 ##mv shhopt/shhopt.h shhopt/pbmshhopt.h
 ##perl -pi -e 's|shhopt.h|pbmshhopt.h|g' `find -name "*.c" -o -name "*.h"` ./GNUmakefile
@@ -189,6 +191,9 @@
 %{_mandir}/man5/*
 
 %changelog
+* Fri Feb  2 2007 Jindrich Novy <jnovy at redhat.com> 10.35-11
+- fix pbmtomacp buffer overflow (#226969)
+
 * Mon Jan 29 2007 Jindrich Novy <jnovy at redhat.com> 10.35-10
 - bmptopnm won't crash with "BMPlencolormap: internal error!" (#224554)
 




More information about the fedora-cvs-commits mailing list