Hello community,

here is the log from the commit of package hunspell for openSUSE:Factory 
checked in at 2014-02-23 07:28:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/hunspell (Old)
 and      /work/SRC/openSUSE:Factory/.hunspell.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "hunspell"

Changes:
--------
--- /work/SRC/openSUSE:Factory/hunspell/hunspell.changes        2013-04-02 
11:51:54.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.hunspell.new/hunspell.changes   2014-02-23 
07:28:31.000000000 +0100
@@ -1,0 +2,6 @@
+Fri Feb 21 20:50:48 UTC 2014 - [email protected]
+
+- hashmgr-add-word.patch: fix allocation error in HashMgr::add_word (from
+  http://sourceforge.net/p/hunspell/patches/49/)
+
+-------------------------------------------------------------------

New:
----
  hashmgr-add-word.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ hunspell.spec ++++++
--- /var/tmp/diff_new_pack.ex3XzX/_old  2014-02-23 07:28:31.000000000 +0100
+++ /var/tmp/diff_new_pack.ex3XzX/_new  2014-02-23 07:28:31.000000000 +0100
@@ -27,6 +27,7 @@
 Url:            http://hunspell.sourceforge.net/
 Source0:        
http://downloads.sourceforge.net/project/%{name}/Hunspell/%{version}/%{name}-%{version}.tar.gz
 Source1:        baselibs.conf
+Patch0:         hashmgr-add-word.patch
 BuildRequires:  autoconf >= 2.59
 BuildRequires:  automake
 BuildRequires:  gcc-c++
@@ -73,6 +74,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure \

++++++ hashmgr-add-word.patch ++++++
Index: hunspell-1.3.2/src/hunspell/hashmgr.cxx
===================================================================
--- hunspell-1.3.2.orig/src/hunspell/hashmgr.cxx
+++ hunspell-1.3.2/src/hunspell/hashmgr.cxx
@@ -116,7 +116,7 @@ int HashMgr::add_word(const char * word,
     int al, const char * desc, bool onlyupcase)
 {
     bool upcasehomonym = false;
-    int descl = desc ? (aliasm ? sizeof(short) : strlen(desc) + 1) : 0;
+    int descl = desc ? (aliasm ? sizeof(char *) : strlen(desc) + 1) : 0;
     // variable-length hash record with word and optional fields
     struct hentry* hp = 
        (struct hentry *) malloc (sizeof(struct hentry) + wbl + descl);
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to