Accepting request 223507 from devel:libraries:c_c++
- hashmgr-add-word.patch: fix allocation error in HashMgr::add_word (from http://sourceforge.net/p/hunspell/patches/49/) (forwarded request 223453 from AndreasSchwab) OBS-URL: https://build.opensuse.org/request/show/223507 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hunspell?expand=0&rev=38
This commit is contained in:
commit
687de25eb4
13
hashmgr-add-word.patch
Normal file
13
hashmgr-add-word.patch
Normal file
@ -0,0 +1,13 @@
|
||||
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);
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 21 20:50:48 UTC 2014 - schwab@linux-m68k.org
|
||||
|
||||
- hashmgr-add-word.patch: fix allocation error in HashMgr::add_word (from
|
||||
http://sourceforge.net/p/hunspell/patches/49/)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 28 08:46:28 UTC 2013 - mmeister@suse.com
|
||||
|
||||
|
@ -27,6 +27,7 @@ Release: 0
|
||||
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 @@ Static hunspell library.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%configure \
|
||||
|
Loading…
Reference in New Issue
Block a user