From a65e78e8579aab35c8620d101f5280b42151d492 Mon Sep 17 00:00:00 2001 From: Jindrich Novy Date: Fri, 19 Dec 2008 08:51:28 +0000 Subject: [PATCH] - fix segfault in pamtosvg caused by not reverting "sentinel value" (#476989) --- netpbm-10.35-pamtosvgsegfault.patch | 11 +++++++++++ netpbm.spec | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 netpbm-10.35-pamtosvgsegfault.patch diff --git a/netpbm-10.35-pamtosvgsegfault.patch b/netpbm-10.35-pamtosvgsegfault.patch new file mode 100644 index 0000000..524cb04 --- /dev/null +++ b/netpbm-10.35-pamtosvgsegfault.patch @@ -0,0 +1,11 @@ +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 diff --git a/netpbm.spec b/netpbm.spec index baa4457..28174dc 100644 --- a/netpbm.spec +++ b/netpbm.spec @@ -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 @@ Patch17: netpbm-10.35-pbmtomacp.patch 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 @@ netpbm-progs. You'll also need to install the netpbm package. %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 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/netpbm/ %changelog +* Fri Dec 19 2008 Jindrich Novy 10.35.57-2 +- fix segfault in pamtosvg caused by not reverting "sentinel value" (#476989) + * Mon Dec 15 2008 Jindrich Novy 10.35.57-1 - update to 10.35.57