rpms/aspell/F-8 aspell-0.60.5-zero.patch,1.1,1.2

Ivana Varekova (varekova) fedora-extras-commits at redhat.com
Thu May 29 11:20:21 UTC 2008


Author: varekova

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

Modified Files:
	aspell-0.60.5-zero.patch 
Log Message:
fix previous patch


aspell-0.60.5-zero.patch:

Index: aspell-0.60.5-zero.patch
===================================================================
RCS file: /cvs/pkgs/rpms/aspell/F-8/aspell-0.60.5-zero.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- aspell-0.60.5-zero.patch	29 May 2008 09:29:49 -0000	1.1
+++ aspell-0.60.5-zero.patch	29 May 2008 11:19:36 -0000	1.2
@@ -1,11 +1,11 @@
-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
+diff -up aspell-0.60.5/common/convert.cpp.zero aspell-0.60.5/common/convert.cpp
+--- aspell-0.60.5/common/convert.cpp.zero	2006-11-18 09:36:01.000000000 +0100
++++ aspell-0.60.5/common/convert.cpp	2008-05-29 13:13:03.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) {
-         FilterChar c = from_utf8(in, stop, (Uni32)-1);
+         out.append(from_utf8(in, stop));




More information about the fedora-extras-commits mailing list