rpms/netpbm/devel netpbm-10.35-pamtosvgsegfault.patch, NONE, 1.1 netpbm.spec, 1.124, 1.125

Jindrich Novy jnovy at fedoraproject.org
Fri Dec 19 08:51:59 UTC 2008


Author: jnovy

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

Modified Files:
	netpbm.spec 
Added Files:
	netpbm-10.35-pamtosvgsegfault.patch 
Log Message:
* 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)


netpbm-10.35-pamtosvgsegfault.patch:

--- NEW FILE netpbm-10.35-pamtosvgsegfault.patch ---
diff -up netpbm-10.35.57/converter/other/pamtosvg/fit.c.pamtosvgsegfault netpbm-10.35.57/converter/other/pamtosvg/fit.c
--- netpbm-10.35.57/converter/other/pamtosvg/fit.c.pamtosvgsegfault	2008-12-15 10:04:49.000000000 +0100
+++ netpbm-10.35.57/converter/other/pamtosvg/fit.c	2008-12-19 09:10:01.000000000 +0100
@@ -1852,6 +1852,7 @@ find_error (curve_type curve, spline_typ
 
   if (*worst_point == CURVE_LENGTH (curve) + 1)
     { /* Didn't have any ``worst point''; the error should be zero.  */
+      *worst_point = 0;
       if (epsilon_equal (total_error, 0.0))
         LOG ("  Every point fit perfectly.\n");
       else


Index: netpbm.spec
===================================================================
RCS file: /cvs/pkgs/rpms/netpbm/devel/netpbm.spec,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -r1.124 -r1.125
--- netpbm.spec	15 Dec 2008 09:36:07 -0000	1.124
+++ netpbm.spec	19 Dec 2008 08:51:28 -0000	1.125
@@ -1,7 +1,7 @@
 Summary: A library for handling different graphics file formats
 Name: netpbm
 Version: 10.35.57
-Release: 1%{?dist}
+Release: 2%{?dist}
 # See copyright_summary for details
 License: BSD and GPLv2 and IJG and MIT and Public Domain
 Group: System Environment/Libraries
@@ -30,6 +30,7 @@
 Patch18: netpbm-10.35-glibc.patch
 Patch19: netpbm-10.35-gcc43.patch
 Patch20: netpbm-10.35-rgbtxt.patch
+Patch21: netpbm-10.35-pamtosvgsegfault.patch
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: libjpeg-devel, libpng-devel, libtiff-devel, flex
 BuildRequires: libX11-devel, python, jasper-devel
@@ -90,6 +91,7 @@
 %patch18 -p1 -b .glibc
 %patch19 -p1 -b .gcc43
 %patch20 -p1 -b .rgbtxt
+%patch21 -p1 -b .pamtosvgsegfault
 
 ##mv shhopt/shhopt.h shhopt/pbmshhopt.h
 ##perl -pi -e 's|shhopt.h|pbmshhopt.h|g' `find -name "*.c" -o -name "*.h"` ./GNUmakefile
@@ -217,6 +219,9 @@
 %{_datadir}/netpbm/
 
 %changelog
+* 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)
+
 * Mon Dec 15 2008 Jindrich Novy <jnovy at redhat.com> 10.35.57-1
 - update to 10.35.57
 




More information about the fedora-extras-commits mailing list