summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2021-11-16 14:31:58 +0100
committerMichael Stahl <michael.stahl@allotropia.de>2021-11-16 17:50:07 +0100
commit0047e38da8bdfe09360cc2a658283ad5e18986e7 (patch)
tree0f197863800fd6f0109fe2f8423d10d22256d564 /svtools
parenta7116b890ccd6dd1721413b4de6591a8057668ef (diff)
svtools: HTMLParser: don't insert EOF into strings
It's not a valid Unicode code point. Change-Id: I96103f4c505047bdf0451619937b8e1b2efb127f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125307 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/svhtml/parhtml.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx
index e38afaa8ec2b..e96af0e732a7 100644
--- a/svtools/source/svhtml/parhtml.cxx
+++ b/svtools/source/svhtml/parhtml.cxx
@@ -651,11 +651,7 @@ HtmlTokenId HTMLParser::ScanText( const sal_Unicode cBreak )
{
bContinue = false;
}
- else
- {
- sTmpBuffer.appendUtf32( nNextCh );
- }
-
+ // else: ignore, not a valid code point
break;
case '<':
@@ -967,7 +963,7 @@ HtmlTokenId HTMLParser::GetNextRawToken()
}
break;
}
- [[fallthrough]];
+ break;
default:
if (!linguistic::IsControlChar(nNextCh) || nNextCh == '\t')
{