rpms/aspell/F-9 aspell-0.60.5-zero.patch, NONE, 1.1 aspell.spec, 1.41, 1.42
Ivana Varekova (varekova)
fedora-extras-commits at redhat.com
Thu May 29 09:25:15 UTC 2008
Author: varekova
Update of /cvs/pkgs/rpms/aspell/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7394
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:13:29.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/F-9/aspell.spec,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- aspell.spec 20 Feb 2008 06:06:17 -0000 1.41
+++ aspell.spec 29 May 2008 09:24:22 -0000 1.42
@@ -1,7 +1,7 @@
Summary: A spelling checker
Name: aspell
Version: 0.60.5
-Release: 5%{?dist}
+Release: 6%{?dist}
Epoch: 12
License: LGPLv2 and MIT
Group: Applications/Text
@@ -12,6 +12,7 @@
Patch5: aspell-0.60.5-fileconflict.patch
Patch7: aspell-0.60.5-pspell_conf.patch
Patch8: aspell-0.60.5-gcc43.patch
+Patch9: aspell-0.60.5-zero.patch
Requires: aspell-en
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gettext, ncurses-devel, pkgconfig
@@ -54,6 +55,7 @@
%patch5 -p1 -b .fc
%patch7 -p1 -b .mlib
%patch8 -p1 -b .gcc43
+%patch9 -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
@@ -131,6 +133,10 @@
%{_mandir}/man1/pspell-config.1*
%changelog
+* Thu May 29 2008 Ivana Varekova <varekova at redhat.com> - 12:0.60.5-6
+- Resolves: #447428
+ aspell sigserv on checking file with 0 length
+
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng at fedoraproject.org> - 12:0.60.5-5
- Autorebuild for GCC 4.3
More information about the fedora-extras-commits
mailing list