[aspell] - resolves: #813261 fixed crash when trying to run "aspell dump personal"

pschiffe pschiffe at fedoraproject.org
Thu Jul 19 16:14:15 UTC 2012


commit a3d083066ad01bcb195974e2b65b1f3de16a4dfc
Author: Peter Schiffer <pschiffe at redhat.com>
Date:   Thu Jul 19 18:13:49 2012 +0200

    - resolves: #813261
      fixed crash when trying to run "aspell dump personal"

 aspell-0.60.6.1-dump-personal-abort.patch |   13 +++++++++++++
 aspell.spec                               |    8 +++++++-
 2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/aspell-0.60.6.1-dump-personal-abort.patch b/aspell-0.60.6.1-dump-personal-abort.patch
new file mode 100644
index 0000000..6aa982f
--- /dev/null
+++ b/aspell-0.60.6.1-dump-personal-abort.patch
@@ -0,0 +1,13 @@
+diff -upr aspell-0.60.6.1.orig/prog/aspell.cpp aspell-0.60.6.1/prog/aspell.cpp
+--- aspell-0.60.6.1.orig/prog/aspell.cpp	2011-07-04 11:13:58.000000000 +0200
++++ aspell-0.60.6.1/prog/aspell.cpp	2012-07-19 15:16:43.204799622 +0200
+@@ -1570,7 +1570,8 @@ void personal () {
+ 
+     Config * config = options;
+     Dictionary * per = new_default_writable_dict();
+-    per->load(config->retrieve("personal-path"), *config);
++    PosibErr<void> pe = per->load(config->retrieve("personal-path"), *config);
++    if (pe.has_err()) {print_error(pe.get_err()->mesg); exit(1);}
+     StackPtr<WordEntryEnumeration> els(per->detailed_elements());
+     StackPtr<Convert> conv(setup_conv(per->lang(), config));
+ 
diff --git a/aspell.spec b/aspell.spec
index b96c833..d0a13c6 100644
--- a/aspell.spec
+++ b/aspell.spec
@@ -1,7 +1,7 @@
 Summary: Spell checker
 Name: aspell
 Version: 0.60.6.1
-Release: 3%{?dist}
+Release: 4%{?dist}
 Epoch: 12
 # LGPLv2+ .. aspell-0.60.6/misc/po-filter.c, ltmain.sh, modules/speller/default/affix.cpp
 # GPLv2+  .. aspell-0.60.6/misc/po-filter.c, aspell-0.60.6/ltmain.sh
@@ -15,6 +15,7 @@ Patch5: aspell-0.60.5-fileconflict.patch
 Patch7: aspell-0.60.5-pspell_conf.patch
 Patch8: aspell-0.60.6-zero.patch
 Patch9: aspell-0.60.6-mp.patch
+Patch10: aspell-0.60.6.1-dump-personal-abort.patch
 BuildRequires: gettext, ncurses-devel, pkgconfig
 BuildRequires: chrpath
 Requires(pre): /sbin/install-info
@@ -49,6 +50,7 @@ libraries and header files needed for Aspell development.
 %patch7 -p1 -b .mlib
 %patch8 -p1 -b .zero
 %patch9 -p1 -b .ai
+%patch10 -p1 -b .dump-personal
 iconv -f windows-1252 -t utf-8 manual/aspell.info -o manual/aspell.info.aux
 mv manual/aspell.info.aux manual/aspell.info
 
@@ -143,6 +145,10 @@ fi
 %{_mandir}/man1/pspell-config.1*
 
 %changelog
+* Thu Jul 19 2012 Peter Schiffer <pschiffe at redhat.com> - 12:0.60.6.1-4
+- resolves: #813261
+  fixed crash when trying to run "aspell dump personal"
+
 * Wed Jul 18 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 12:0.60.6.1-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list