diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-06-27 16:02:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-06-27 18:46:23 +0200 |
commit | 1ea097688f27ce1cfbceb2637437b0d60e61bc40 (patch) | |
tree | 4784436d0fb4588ed28c3ea0c0a8d266988a0b70 /svtools | |
parent | e7b3c961e95fdf51557702f2e74db796a6bd2c09 (diff) |
ofz#24932 Infinite loop
Change-Id: I05770f0209aaee1b9af6b88f85764ec98e7fa5a5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136504
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/svrtf/parrtf.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/svrtf/parrtf.cxx b/svtools/source/svrtf/parrtf.cxx index c6dcef7a0b69..24272800f49c 100644 --- a/svtools/source/svrtf/parrtf.cxx +++ b/svtools/source/svrtf/parrtf.cxx @@ -168,7 +168,7 @@ int SvRTFParser::GetNextToken_() { nNextToken = GetNextToken_(); } - while (nNextToken != '{' && nNextToken != sal_Unicode(EOF)); + while (nNextToken != '{' && nNextToken != sal_Unicode(EOF) && IsParserWorking()); SkipGroup(); GetNextToken_(); // overread the last bracket |