From deb7fb454439df3af05620f6615b408acecda23d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Tue, 2 Aug 2022 09:20:35 +0100 Subject: [PATCH] Resolves: rhbz#2113444 FTBFS --- Werror-format-security.patch | 11 +++++++++++ hunspell.spec | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 Werror-format-security.patch diff --git a/Werror-format-security.patch b/Werror-format-security.patch new file mode 100644 index 0000000..56b06a5 --- /dev/null +++ b/Werror-format-security.patch @@ -0,0 +1,11 @@ +--- 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(); diff --git a/hunspell.spec b/hunspell.spec index d878f53..234f2dd 100644 --- a/hunspell.spec +++ b/hunspell.spec @@ -3,7 +3,7 @@ Name: hunspell Summary: A spell checker and morphological analyzer library Version: 1.7.0 -Release: 20%{?dist} +Release: 21%{?dist} Source: https://github.com/hunspell/hunspell/archive/v%{version}.tar.gz URL: https://github.com/hunspell/hunspell License: LGPLv2+ or GPLv2+ or MPLv1.1 @@ -21,6 +21,7 @@ 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 @@ -45,6 +46,7 @@ packages. %prep %setup -q %patch0 -p1 -b .CVE-2019-16707 +%patch1 -p1 -b .Werror-format-security %build autoreconf -vfi @@ -130,6 +132,9 @@ mkdir $RPM_BUILD_ROOT/%{_datadir}/myspell %{_datadir}/myspell %changelog +* Tue Aug 02 2022 Caolán McNamara - 1.7.0-21 +- Resolves: rhbz#2113444 FTBFS + * Thu Jul 21 2022 Fedora Release Engineering - 1.7.0-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild