Projects
openEuler:24.03:SP1:Everything
hunspell
_service:tar_scm:backport-CVE-2019-16707.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:backport-CVE-2019-16707.patch of Package hunspell
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 dba084e9..c23f165a 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;
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2