SHA256
1
0
forked from pool/aspell

- version update to 0.60.8

* Prevent a potentially unbounded buffer over-read by no longer
  supporting null-terminated UCS-2 and UCS-4 encoded strings with the
  original C API. @xref{Upgrading from Aspell 0.60.7}.
  * Ensure that possible typos are listed before other suggestions when
  typo analysis is used.  Also fix a bug so that suggestions that split
  a word using a space or hyphen are not always first.
  * Add Markdown filter.
  * Add new @option{wordlists} option, which is a list of UTF-8 files that
  contain additional words to accept.
  * Add new @option{camel-case} option, which enables support for checking
  camelCase words.
  * Sort personal and replacement dictionaries.
  * Change @code{ultra} suggestion mode to only find words that are within
  one-edit distance or have the same soundslike.
  * Implement the @code{aspell filter} command.
  * Fix a bug in @code{AspellDocumentChecker} that prevented it from
  working with UCS-2 and UCS-4 encoded strings.
  * Remove unused @option{sug-edit-dist} option.
  * @code{AspellDocumentChecker} now expects the document a line at a time
  in order to work with the new Markdown filter.  If the document is
  split on white space characters instead, nothing will break, but new
  filters such as the Markdown filter may give incorrect results.
  * The @option{clean} option and command will no longer split a word.
  * Various documentation improvements.
  * Removal of several outdated appendices that don't really belong in the
  main manual.  Parts that are still relevent may eventually be moved
  elsewhere, but for now they are available online at
  @uref{http://aspell.net/0.60.7/man-html/}.
  * Fix various crashes and other problems found by Google's OSS-Fuzz.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/aspell?expand=0&rev=36
This commit is contained in:
Petr Gajdos 2019-10-15 07:47:43 +00:00 committed by Git OBS Bridge
parent 594161ebb0
commit 16f3d955c1
9 changed files with 73 additions and 98 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f52583a83a63633701c5f71db3dc40aab87b7f76b29723aeb27941eff42df6e1
size 1878163

Binary file not shown.

BIN
aspell-0.60.8.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

7
aspell-0.60.8.tar.gz.sig Normal file
View File

@ -0,0 +1,7 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iEYEABECAAYFAl2iVDoACgkQttnQzDizJ9ekcACfWDC/8lwAPGiRtC+mTjSXc0Nx
4xoAn24YScVIJ8Zk5yQ7lZ1fFX9Z8sMb
=k99I
-----END PGP SIGNATURE-----

View File

@ -1,13 +0,0 @@
Index: configure.ac
===================================================================
--- configure.ac
+++ configure.ac
@@ -2,7 +2,7 @@ AC_INIT(GNU Aspell, 0.60.6.1)
AC_CONFIG_SRCDIR(prog/aspell.cpp)
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE
-AM_CONFIG_HEADER(gen/settings.h)
+AC_CONFIG_HEADERS(gen/settings.h)
AM_MAINTAINER_MODE

View File

@ -1,46 +0,0 @@
--- common/convert.cpp.orig
+++ common/convert.cpp
@@ -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) {
out.append(from_utf8(in, stop));
--- Makefile.am.orig
+++ Makefile.am
@@ -29,8 +29,10 @@ lib_LTLIBRARIES = libaspell.la
if PSPELL_COMPATIBILITY
lib_LTLIBRARIES += libpspell.la
+libpspell_la_CXXFLAGS = -fvisibility-inlines-hidden
endif
+libaspell_la_CXXFLAGS = -fvisibility-inlines-hidden
libaspell_la_SOURCES =\
common/cache.cpp\
common/string.cpp\
@@ -194,7 +196,7 @@ libaspell_la_SOURCES +=\
else # not COMPILE_IN_FILTERS
dynamic_optfiles += ${optfiles}
-filter_ldflags = -module -avoid-version
+filter_ldflags = -avoid-version -module -shared -export-dynamic
### Add name of filter library containing your filter. Name always
### must look like lib<filtername>-filter.la see development manual
--- lib5/Makefile.am.orig
+++ lib5/Makefile.am
@@ -1,9 +1,9 @@
-
+AM_CXXFLAGS = -fvisibility-inlines-hidden
if INCREMENTED_SONAME
lib_LTLIBRARIES = libaspell.la
libaspell_la_SOURCES = aspell-dummy.cpp
-libaspell_la_LDFLAGS = -version-info 16:0:1
+libaspell_la_LDFLAGS = -no-undefined -version-info 16:0:1
libaspell_la_LIBADD = ../libaspell.la
if PSPELL_COMPATIBILITY

View File

@ -1,3 +1,62 @@
-------------------------------------------------------------------
Tue Oct 15 07:42:20 UTC 2019 - pgajdos@suse.com
- version update to 0.60.8
* Prevent a potentially unbounded buffer over-read by no longer
supporting null-terminated UCS-2 and UCS-4 encoded strings with the
original C API. @xref{Upgrading from Aspell 0.60.7}.
* Ensure that possible typos are listed before other suggestions when
typo analysis is used. Also fix a bug so that suggestions that split
a word using a space or hyphen are not always first.
* Add Markdown filter.
* Add new @option{wordlists} option, which is a list of UTF-8 files that
contain additional words to accept.
* Add new @option{camel-case} option, which enables support for checking
camelCase words.
* Sort personal and replacement dictionaries.
* Change @code{ultra} suggestion mode to only find words that are within
one-edit distance or have the same soundslike.
* Implement the @code{aspell filter} command.
* Fix a bug in @code{AspellDocumentChecker} that prevented it from
working with UCS-2 and UCS-4 encoded strings.
* Remove unused @option{sug-edit-dist} option.
* @code{AspellDocumentChecker} now expects the document a line at a time
in order to work with the new Markdown filter. If the document is
split on white space characters instead, nothing will break, but new
filters such as the Markdown filter may give incorrect results.
* The @option{clean} option and command will no longer split a word.
* Various documentation improvements.
* Removal of several outdated appendices that don't really belong in the
main manual. Parts that are still relevent may eventually be moved
elsewhere, but for now they are available online at
@uref{http://aspell.net/0.60.7/man-html/}.
* Fix various crashes and other problems found by Google's OSS-Fuzz.
* Add partial support for recognizing the Unicode apostrophe (') in
words. In particular Aspell will accept the Unicode apostrophe when
the language uses an ISO Latin charset that doesn't already have a
Unicode apostrophe. For now, Aspell will still use the ASCII version
in suggestions.
* Detect when a dictionary compiled on a 32-bit machine is used on a
64-bit one (and vise versa), as due to an oversight, compiled
dictionaries depend on more than the endianness. Also added a compile
time option to remove this dependency, but at the cost of breaking
compatibility with already compiled dictionaries on 64-bit systems.
* Fix a bug which caused Aspell to crash when passing in a null string
to almost any of the C API functions. This should not happen if the
size is also zero as the pointer should never be derefrenced.
* Fix a bug that caused Aspell to crash with a SEGFAULT when built with
mingw-w64.
* In addition to outputting a warning when building with NDEBUG defined,
also include NDEBUG in the version string.
* Various compile fixes for newer version of Gcc and Clang.
* Fix VPATH builds.
* Use utf-8 encoding for manual instead of iso-8859-1.
* Other minor updates and bug fixes.
- deleted patches
- aspell-automake-1.13.patch (upstreamed)
- aspell-epmty_file.patch (upstreamed, bsc#266130 does not exhibit)
- gcc7-fix-warnings.patch (upstreamed)
-------------------------------------------------------------------
Sat Feb 11 13:32:04 UTC 2017 - jengelh@inai.de

View File

@ -1,7 +1,7 @@
#
# spec file for package aspell
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,15 +12,15 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: aspell
Version: 0.60.6.1
Version: 0.60.8
Release: 0
Summary: A Spell Checker
License: GFDL-1.1+ and LGPL-2.1 and HPND and SUSE-BSD-Mark-Modifications
License: GFDL-1.1-or-later AND LGPL-2.1-only AND HPND AND SUSE-BSD-Mark-Modifications
Group: Productivity/Text/Spell
Url: http://aspell.net/
Source0: ftp://ftp.gnu.org/gnu/aspell/%{name}-%{version}.tar.gz
@ -31,11 +31,6 @@ Source100: baselibs.conf
Patch0: aspell-strict-aliasing.patch
# PATCH-FIX-OPENSUSE aspell-quotes.patch lmichnovic@suse.cz -- Fix command execution in script "run-with-aspell"
Patch1: aspell-quotes.patch
# PATCH-FIX-OPENSUSE aspell-epmty_file.patch bnc#266130 lmichnovic@suse.cz -- Fix SIGSEV when checking empty file
Patch2: aspell-epmty_file.patch
# PATCH-FIX-UPSTREAM aspell-automake-1.13.patch pgajdos@suse.cz -- fix build with new automake
Patch3: aspell-automake-1.13.patch
Patch4: gcc7-fix-warnings.patch
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libtool
@ -125,9 +120,6 @@ This package contains the pspell compatibility library.
%setup -q
%patch0
%patch1
%patch2
%patch3
%patch4 -p1
%build
autoreconf -fiv

View File

@ -1,24 +0,0 @@
diff -u -r aspell-0.60.6.1/modules/filter/tex.cpp /var/tmp/build-root/standard-x86_64/home/abuild/rpmbuild/BUILD/aspell-0.60.6.1/modules/filter/tex.cpp
--- aspell-0.60.6.1/modules/filter/tex.cpp 2011-07-02 23:09:09.000000000 +0200
+++ aspell-0.60.6.1/modules/filter/tex.cpp 2016-12-16 11:14:33.893176139 +0100
@@ -174,7 +174,7 @@
if (c == '{') {
- if (top.in_what == Parm || top.in_what == Opt || top.do_check == '\0')
+ if (top.in_what == Parm || top.in_what == Opt || *top.do_check == '\0')
push_command(Parm);
top.in_what = Parm;
diff -u -r aspell-0.60.6.1/prog/check_funs.cpp /var/tmp/build-root/standard-x86_64/home/abuild/rpmbuild/BUILD/aspell-0.60.6.1/prog/check_funs.cpp
--- aspell-0.60.6.1/prog/check_funs.cpp 2011-07-04 11:17:27.000000000 +0200
+++ aspell-0.60.6.1/prog/check_funs.cpp 2016-12-16 11:15:23.294134519 +0100
@@ -647,7 +647,7 @@
}
}
if (i == width-1) {
- if (word == '\0')
+ if (*word == '\0')
put(out,' ');
else if (word[len] == '\0')
put(out, word, len);