diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-11-02 14:02:18 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-11-03 00:34:06 +0100 |
commit | bcaa452f20b46749afd8fd48addadd4718484be1 (patch) | |
tree | 67469cc2d95b8b8e474bf3aeffb02e6ce47568ba /svtools | |
parent | c79467ba954987f1d239c594c1e1b3af3f5515f6 (diff) |
Infinite loop in ooo32227-1.rtf with calc rtf filter
Change-Id: I068b205c844296379b5641356e4087b17f0a3535
Reviewed-on: https://gerrit.libreoffice.org/44218
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/svrtf/parrtf.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/svtools/source/svrtf/parrtf.cxx b/svtools/source/svrtf/parrtf.cxx index 309e5fb96c8a..7db60878a9e4 100644 --- a/svtools/source/svrtf/parrtf.cxx +++ b/svtools/source/svrtf/parrtf.cxx @@ -336,7 +336,9 @@ void SvRTFParser::ScanText() sal_Char nSlash = '\\'; while (!bBreak) { - wchar_t next=GetNextChar(); + auto next = GetNextChar(); + if (sal_Unicode(EOF) == next) + break; if (next>0xFF) // fix for #i43933# and #i35653# { if (!aByteString.isEmpty()) |