rpms/aspell/devel aspell-0.60.6-zero.patch, NONE, 1.1 aspell.spec, 1.42, 1.43

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


Author: varekova

Update of /cvs/pkgs/rpms/aspell/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6720

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


aspell-0.60.6-zero.patch:

--- NEW FILE aspell-0.60.6-zero.patch ---
diff -up aspell-0.60.6/common/convert.cpp.zero aspell-0.60.6/common/convert.cpp
--- aspell-0.60.6/common/convert.cpp.zero	2007-12-03 07:55:45.000000000 +0100
+++ aspell-0.60.6/common/convert.cpp	2008-05-29 10:51:39.000000000 +0200
@@ -813,6 +813,7 @@ namespace acommon {
   {
     ToUniLookup lookup;
     void decode(const char * in, int size, FilterCharVector & out) const {
+      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) {
         out.append(from_utf8(in, stop));


Index: aspell.spec
===================================================================
RCS file: /cvs/pkgs/rpms/aspell/devel/aspell.spec,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- aspell.spec	7 May 2008 13:16:18 -0000	1.42
+++ aspell.spec	29 May 2008 09:07:43 -0000	1.43
@@ -1,7 +1,7 @@
 Summary: A spelling checker
 Name: aspell
 Version: 0.60.6
-Release: 1%{?dist}
+Release: 2%{?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.6-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.6-2
+- Resolves: #447428
+  aspell sigserv on checking file with 0 length
+
 * Wed May  7 2008 Ivana Varekova <varekova at redhat.com> - 12:0.60.6-1
 - update to 0.60.6
 




More information about the fedora-extras-commits mailing list