summaryrefslogtreecommitdiff
path: root/core/fxcrt/xml/cfx_saxcontext.cpp
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2017-07-19 14:12:03 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-07-19 19:07:42 +0000
commiteed247e9cb3b0e9ce5dcb8bf6ee7673c9dd3e544 (patch)
tree1fdf5130073a7567e5c88acb1c33fa8b81ae917c /core/fxcrt/xml/cfx_saxcontext.cpp
parent88f474346523d64f64e444be0115c6226c9c62b3 (diff)
downloadpdfium-eed247e9cb3b0e9ce5dcb8bf6ee7673c9dd3e544.tar.xz
Converting CFX_ByteTextBuf to ostringstream in SAX.
Respin of https://pdfium-review.googlesource.com/c/6592 with fixes that avoid invalid reads. Bug: pdfium:731 Change-Id: I9395063505ba1a5c610e21b089ab8aa1a0a5b86f Reviewed-on: https://pdfium-review.googlesource.com/8290 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fxcrt/xml/cfx_saxcontext.cpp')
-rw-r--r--core/fxcrt/xml/cfx_saxcontext.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/fxcrt/xml/cfx_saxcontext.cpp b/core/fxcrt/xml/cfx_saxcontext.cpp
new file mode 100644
index 0000000000..4e2f0c58c9
--- /dev/null
+++ b/core/fxcrt/xml/cfx_saxcontext.cpp
@@ -0,0 +1,9 @@
+// Copyright 2017 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "core/fxcrt/xml/cfx_saxcontext.h"
+
+CFX_SAXContext::CFX_SAXContext() : m_eNode(CFX_SAXItem::Type::Unknown) {}
+
+CFX_SAXContext::~CFX_SAXContext() {}