summaryrefslogtreecommitdiff
path: root/editeng/source
diff options
context:
space:
mode:
Diffstat (limited to 'editeng/source')
-rw-r--r--editeng/source/misc/svxacorr.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 04e079be92a7..f22cb42d871f 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -2833,6 +2833,10 @@ const SvxAutocorrWord* SvxAutocorrWordList::WordMatches(const SvxAutocorrWord *p
;
if (bWasWordDelim) nFndPos++;
}
+ if (nEndPos + extra_repl <= nFndPos)
+ {
+ return 0;
+ }
// store matching pattern and its replacement as a new list item, eg. "i18ns" -> "internationalizations"
OUString aShort = rTxt.copy(nFndPos, nEndPos - nFndPos + extra_repl);
t/lotuswordpro/qa?id=ae01adf0747496e8c36f8f30fc2c1a4a6ef8275e'>ofz#20267 Indirect-leakCaolán McNamara 2020-01-20Resolves: tdf#130093 some lwp file not loadingCaolán McNamara 2018-04-30ofz#8095 avoid recurse to deathCaolán McNamara 2018-03-25ofz#7109 infinite regressCaolán McNamara 2018-03-21ofz#7043 already registeredCaolán McNamara 2018-02-12ofz#6208 Indirect-leakCaolán McNamara