rpms/aspell/F-8 aspell-0.60.5-zero.patch, NONE, 1.1 aspell.spec, 1.39, 1.40

Ivana Varekova (varekova) fedora-extras-commits at redhat.com
Thu May 29 09:30:33 UTC 2008


Author: varekova

Update of /cvs/pkgs/rpms/aspell/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7636

Modified Files:
	aspell.spec 
Added Files:
	aspell-0.60.5-zero.patch 
Log Message:
- Resolves: #447428
  aspell sigserv on checking file with 0 length



aspell-0.60.5-zero.patch:

--- NEW FILE aspell-0.60.5-zero.patch ---
diff -up aspell-0.60.5/common/convert.cpp.pom aspell-0.60.5/common/convert.cpp
--- aspell-0.60.5/common/convert.cpp.pom	2006-11-18 09:36:01.000000000 +0100
+++ aspell-0.60.5/common/convert.cpp	2008-05-29 11:25:25.000000000 +0200
@@ -821,6 +821,7 @@ namespace acommon {
     PosibErr<void> decode_ec(const char * in, int size, 
                              FilterCharVector & out, ParmStr orig) const {
       const char * begin = in;
+      if (size == 0) return; // if size == 0 then while loop cause SIGSEGV
       const char * stop = in + size; // this is OK even if size == -1
       while (*in && in != stop) {
         FilterChar c = from_utf8(in, stop, (Uni32)-1);


Index: aspell.spec
===================================================================
RCS file: /cvs/pkgs/rpms/aspell/F-8/aspell.spec,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- aspell.spec	27 Aug 2007 11:59:52 -0000	1.39
+++ aspell.spec	29 May 2008 09:29:49 -0000	1.40
@@ -1,7 +1,7 @@
 Summary: A spelling checker
 Name: aspell
 Version: 0.60.5
-Release: 3%{?dist} 
+Release: 4%{?dist} 
 Epoch: 12
 License: LGPLv2 and MIT
 Group: Applications/Text
@@ -11,6 +11,7 @@
 Patch3: aspell-0.60.3-install_info.patch
 Patch5: aspell-0.60.5-fileconflict.patch
 Patch7: aspell-0.60.5-pspell_conf.patch
+Patch8: aspell-0.60.5-zero.patch
 Requires: aspell-en
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: gettext, ncurses-devel, pkgconfig
@@ -52,6 +53,7 @@
 %patch3 -p1 -b .iinfo
 %patch5 -p1 -b .fc
 %patch7 -p1 -b .mlib
+%patch8 -p1 -b .zero
 iconv -f windows-1252 -t utf-8 manual/aspell.info -o manual/aspell.info.aux
 mv manual/aspell.info.aux manual/aspell.info
 
@@ -129,6 +131,10 @@
 %{_mandir}/man1/pspell-config.1*
 
 %changelog
+* Thu May 29 2008 Ivana Varekova <varekova at redhat.com> - 12:0.60.5-4
+- Resolves: #447428
+  aspell sigserv on checking file with 0 length
+
 * Thu Feb  8 2007 Ivana Varekova <varekova at redhat.com> - 12:0.60.5-3
 - incorporate package review feedback
 




More information about the scm-commits mailing list