latest release

This commit is contained in:
Caolán McNamara 2022-08-22 15:02:38 +01:00
parent 5030cda6b3
commit c1da243e3a
5 changed files with 8 additions and 46 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
/v1.7.0.tar.gz
/hunspell-1.7.1.tar.gz

View File

@ -1,25 +0,0 @@
From ac938e2ecb48ab4dd21298126c7921689d60571b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
Date: Tue, 12 Nov 2019 20:03:15 +0000
Subject: [PATCH] invalid read memory access #624
---
src/hunspell/suggestmgr.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/hunspell/suggestmgr.cxx b/src/hunspell/suggestmgr.cxx
index dba084e..c23f165 100644
--- a/src/hunspell/suggestmgr.cxx
+++ b/src/hunspell/suggestmgr.cxx
@@ -2040,7 +2040,7 @@ int SuggestMgr::leftcommonsubstring(
int l2 = su2.size();
// decapitalize dictionary word
if (complexprefixes) {
- if (su1[l1 - 1] == su2[l2 - 1])
+ if (l1 && l2 && su1[l1 - 1] == su2[l2 - 1])
return 1;
} else {
unsigned short idx = su2.empty() ? 0 : (su2[0].h << 8) + su2[0].l;
--
2.23.0

View File

@ -1,11 +0,0 @@
--- a/src/tools/hunspell.cxx 2022-08-02 09:18:13.525748669 +0100
+++ b/src/tools/hunspell.cxx 2022-08-02 09:18:38.598006933 +0100
@@ -581,7 +581,7 @@
#ifdef HAVE_CURSES_H
char* scanline(char* message) {
char input[INPUTLEN];
- printw(message);
+ printw("%s", message);
echo();
getnstr(input, INPUTLEN);
noecho();

View File

@ -2,9 +2,9 @@
Name: hunspell
Summary: A spell checker and morphological analyzer library
Version: 1.7.0
Release: 21%{?dist}
Source: https://github.com/hunspell/hunspell/archive/v%{version}.tar.gz
Version: 1.7.1
Release: 1%{?dist}
Source: https://github.com/hunspell/hunspell/releases/download/v%{version}/hunspell-%{version}.tar.gz
URL: https://github.com/hunspell/hunspell
License: LGPLv2+ or GPLv2+ or MPLv1.1
BuildRequires: gcc-c++
@ -20,9 +20,6 @@ BuildRequires: make
Requires: hunspell-en-US
Requires: hunspell-filesystem = %{version}-%{release}
Patch0: 0001-invalid-read-memory-access-624.patch
Patch1: Werror-format-security.patch
%description
Hunspell is a spell checker and morphological analyzer library and program
designed for languages with rich morphology and complex word compounding or
@ -45,8 +42,6 @@ packages.
%prep
%setup -q
%patch0 -p1 -b .CVE-2019-16707
%patch1 -p1 -b .Werror-format-security
%build
autoreconf -vfi
@ -132,6 +127,9 @@ mkdir $RPM_BUILD_ROOT/%{_datadir}/myspell
%{_datadir}/myspell
%changelog
* Mon Aug 22 2022 Caolán McNamara <caolanm@redhat.com> - 1.7.1-1
- latest release
* Tue Aug 02 2022 Caolán McNamara <caolanm@redhat.com> - 1.7.0-21
- Resolves: rhbz#2113444 FTBFS

View File

@ -1 +1 @@
SHA512 (v1.7.0.tar.gz) = 8149b2e8b703a0610c9ca5160c2dfad3cf3b85b16b3f0f5cfcb7ebb802473b2d499e8e2d0a637a97a37a24d62424e82d3880809210d3f043fa17a4970d47c903
SHA512 (hunspell-1.7.1.tar.gz) = e177fadd39e89abf47c6cec7d12d1976d21af5c924fb62402433af202c07db50156cd9f60ceae44952b05740e76a98548afb7ac12b666a9fa170ef52e6f8e808