- fix segfault in pamtosvg caused by not reverting "sentinel value"

(#476989)
This commit is contained in:
Jindrich Novy 2008-12-19 08:51:28 +00:00
parent 7f24b84ff7
commit a65e78e857
2 changed files with 17 additions and 1 deletions

View File

@ -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

View File

@ -1,7 +1,7 @@
Summary: A library for handling different graphics file formats Summary: A library for handling different graphics file formats
Name: netpbm Name: netpbm
Version: 10.35.57 Version: 10.35.57
Release: 1%{?dist} Release: 2%{?dist}
# See copyright_summary for details # See copyright_summary for details
License: BSD and GPLv2 and IJG and MIT and Public Domain License: BSD and GPLv2 and IJG and MIT and Public Domain
Group: System Environment/Libraries Group: System Environment/Libraries
@ -30,6 +30,7 @@ Patch17: netpbm-10.35-pbmtomacp.patch
Patch18: netpbm-10.35-glibc.patch Patch18: netpbm-10.35-glibc.patch
Patch19: netpbm-10.35-gcc43.patch Patch19: netpbm-10.35-gcc43.patch
Patch20: netpbm-10.35-rgbtxt.patch Patch20: netpbm-10.35-rgbtxt.patch
Patch21: netpbm-10.35-pamtosvgsegfault.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libjpeg-devel, libpng-devel, libtiff-devel, flex BuildRequires: libjpeg-devel, libpng-devel, libtiff-devel, flex
BuildRequires: libX11-devel, python, jasper-devel 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 %patch18 -p1 -b .glibc
%patch19 -p1 -b .gcc43 %patch19 -p1 -b .gcc43
%patch20 -p1 -b .rgbtxt %patch20 -p1 -b .rgbtxt
%patch21 -p1 -b .pamtosvgsegfault
##mv shhopt/shhopt.h shhopt/pbmshhopt.h ##mv shhopt/shhopt.h shhopt/pbmshhopt.h
##perl -pi -e 's|shhopt.h|pbmshhopt.h|g' `find -name "*.c" -o -name "*.h"` ./GNUmakefile ##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/ %{_datadir}/netpbm/
%changelog %changelog
* Fri Dec 19 2008 Jindrich Novy <jnovy@redhat.com> 10.35.57-2
- fix segfault in pamtosvg caused by not reverting "sentinel value" (#476989)
* Mon Dec 15 2008 Jindrich Novy <jnovy@redhat.com> 10.35.57-1 * Mon Dec 15 2008 Jindrich Novy <jnovy@redhat.com> 10.35.57-1
- update to 10.35.57 - update to 10.35.57