summaryrefslogtreecommitdiff
path: root/core/fxcrt/xml/cfx_xmlparser.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-04-26 20:20:37 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-26 20:20:37 +0000
commit52ab95aa3edbabbe90dcefcc54f3b6dace7ac53d (patch)
tree6198d797b594341f5b40cf5c6934f2488297bef7 /core/fxcrt/xml/cfx_xmlparser.cpp
parent051e837e08f52251de5932d90268d504060d12f1 (diff)
downloadpdfium-52ab95aa3edbabbe90dcefcc54f3b6dace7ac53d.tar.xz
Reset entity start when clearing textchromium/3410
When we extract the text data we need to make sure we clear any entity start positions, otherwise our entity extraction will go badly. Bug: chromium:836661 Change-Id: Icbafdef912b1f5b495eafef426961c5df66cd3fd Reviewed-on: https://pdfium-review.googlesource.com/31450 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fxcrt/xml/cfx_xmlparser.cpp')
-rw-r--r--core/fxcrt/xml/cfx_xmlparser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/fxcrt/xml/cfx_xmlparser.cpp b/core/fxcrt/xml/cfx_xmlparser.cpp
index 685655e815..eb79637095 100644
--- a/core/fxcrt/xml/cfx_xmlparser.cpp
+++ b/core/fxcrt/xml/cfx_xmlparser.cpp
@@ -586,6 +586,7 @@ void CFX_XMLParser::ParseTextChar(wchar_t character) {
WideString CFX_XMLParser::GetTextData() {
WideString ret(current_text_.data(), current_text_.size());
current_text_.clear();
+ m_iEntityStart = -1;
current_text_.reserve(kCurrentTextReserve);
return ret;
}