Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/hunspell hunspell: fix CVE-2019-16707 using u...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/75cbe9ea017a
branches:  trunk
changeset: 436451:75cbe9ea017a
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Aug 03 11:19:28 2020 +0000

description:
hunspell: fix CVE-2019-16707 using upstream patch

Bump PKGREVISION.

diffstat:

 textproc/hunspell/Makefile                                  |   4 +-
 textproc/hunspell/distinfo                                  |   3 +-
 textproc/hunspell/patches/patch-src_hunspell_suggestmgr.cxx |  16 +++++++++++++
 3 files changed, 20 insertions(+), 3 deletions(-)

diffs (48 lines):

diff -r 70b7b00e38cf -r 75cbe9ea017a textproc/hunspell/Makefile
--- a/textproc/hunspell/Makefile        Mon Aug 03 11:11:42 2020 +0000
+++ b/textproc/hunspell/Makefile        Mon Aug 03 11:19:28 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.31 2019/08/11 13:23:24 wiz Exp $
+# $NetBSD: Makefile,v 1.32 2020/08/03 11:19:28 wiz Exp $
 
 DISTNAME=      hunspell-1.7.0
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    textproc
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=hunspell/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}
diff -r 70b7b00e38cf -r 75cbe9ea017a textproc/hunspell/distinfo
--- a/textproc/hunspell/distinfo        Mon Aug 03 11:11:42 2020 +0000
+++ b/textproc/hunspell/distinfo        Mon Aug 03 11:19:28 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2018/11/16 13:02:20 bsiegert Exp $
+$NetBSD: distinfo,v 1.13 2020/08/03 11:19:28 wiz Exp $
 
 SHA1 (hunspell-1.7.0.tar.gz) = e42ea8342a191b9cd7da57d0d6ad4ae1566c5dcc
 RMD160 (hunspell-1.7.0.tar.gz) = 52c7dbf21f460a0b61ea7d0378ef314773887fde
@@ -7,4 +7,5 @@
 SHA1 (patch-aa) = 8c6102ddb2e449b6f1abc23f679e0f6f38bfd0b5
 SHA1 (patch-ab) = ee127b1d8f55ceefa807c2fa440885b4fa5d029c
 SHA1 (patch-ac) = c25cdfe80452cb4ca9850354c9fa8581c787c086
+SHA1 (patch-src_hunspell_suggestmgr.cxx) = e1460987dd787720d9783cdf6cd2b060a68d74da
 SHA1 (patch-src_tools_Makefile.am) = e5f67855c48e04fe12deb90904c9c27e2441a8cf
diff -r 70b7b00e38cf -r 75cbe9ea017a textproc/hunspell/patches/patch-src_hunspell_suggestmgr.cxx
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/hunspell/patches/patch-src_hunspell_suggestmgr.cxx       Mon Aug 03 11:19:28 2020 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_hunspell_suggestmgr.cxx,v 1.1 2020/08/03 11:19:28 wiz Exp $
+
+Fix CVE-2019-16707
+https://github.com/hunspell/hunspell/commit/ac938e2ecb48ab4dd21298126c7921689d60571b#diff-783289d6b6330291ec79bf507002106e
+
+--- src/hunspell/suggestmgr.cxx.orig   2018-11-12 20:38:56.000000000 +0000
++++ 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;



Home | Main Index | Thread Index | Old Index