[mythes/f14/master] Resolves: rhbz#675806 fix crash if thesarus is busted

Caolan McNamara caolanm at fedoraproject.org
Tue Feb 8 10:59:33 UTC 2011


commit 08040c4890e472661deec10afa21d2e72d6d0f7b
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Feb 8 10:59:30 2011 +0000

    Resolves: rhbz#675806 fix crash if thesarus is busted

 mythes-1.2.1-rhbz675806.patch |   10 ++++++++++
 mythes.spec                   |    7 ++++++-
 2 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/mythes-1.2.1-rhbz675806.patch b/mythes-1.2.1-rhbz675806.patch
new file mode 100644
index 0000000..fa2aab1
--- /dev/null
+++ b/mythes-1.2.1-rhbz675806.patch
@@ -0,0 +1,10 @@
+--- mythes.cxx	2011-02-08 10:42:57.262964286 +0000
++++ mythes.cxx	2011-02-08 10:43:06.305076490 +0000
+@@ -14,6 +14,7 @@
+     encoding = NULL;
+     list = NULL;
+     offst = NULL;
++    pdfile = NULL;
+ 
+     if (thInitialize(idxpath, datpath) != 1) {
+         fprintf(stderr,"Error - can't open %s or %s\n",idxpath, datpath);
diff --git a/mythes.spec b/mythes.spec
index 9efa48e..c9f2513 100644
--- a/mythes.spec
+++ b/mythes.spec
@@ -1,13 +1,14 @@
 Name:      mythes
 Summary:   A thesaurus library
 Version:   1.2.1
-Release:   1%{?dist}
+Release:   2%{?dist}
 Source:    http://downloads.sourceforge.net/hunspell/%{name}-%{version}.tar.gz
 Group:     System Environment/Libraries
 URL:       http://hunspell.sourceforge.net/
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 License:   BSD
 BuildRequires: hunspell-devel
+Patch0: mythes-1.2.1-rhbz675806.patch
 
 %description
 MyThes is a simple thesaurus that uses a structured text data file and an
@@ -24,6 +25,7 @@ Includes and definitions for developing with mythes
 
 %prep
 %setup -q
+%patch0 -p0 -b .rhbz675806
 
 %build
 %configure --disable-rpath --disable-static
@@ -62,6 +64,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_bindir}/th_gen_idx.pl
 
 %changelog
+* Tue Feb 08 2011 Caolán McNamara <caolanm at redhat.com> - 1.2.1-2
+- Resolves: rhbz#675806 fix crash if thesarus is busted
+
 * Mon Jun 21 2010 Caolán McNamara <caolanm at redhat.com> - 1.2.1-1
 - latest version
 


More information about the scm-commits mailing list