summaryrefslogtreecommitdiff
path: root/core/fpdfapi
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi')
-rw-r--r--core/fpdfapi/page/cpdf_streamcontentparser.cpp2
-rw-r--r--core/fpdfapi/render/cpdf_charposlist.cpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/core/fpdfapi/page/cpdf_streamcontentparser.cpp b/core/fpdfapi/page/cpdf_streamcontentparser.cpp
index 93478de174..21b13772c5 100644
--- a/core/fpdfapi/page/cpdf_streamcontentparser.cpp
+++ b/core/fpdfapi/page/cpdf_streamcontentparser.cpp
@@ -265,6 +265,8 @@ CPDF_StreamContentParser::CPDF_StreamContentParser(
m_pPathPoints(nullptr),
m_PathPointCount(0),
m_PathAllocSize(0),
+ m_PathStartX(0.0f),
+ m_PathStartY(0.0f),
m_PathCurrentX(0.0f),
m_PathCurrentY(0.0f),
m_PathClipType(0),
diff --git a/core/fpdfapi/render/cpdf_charposlist.cpp b/core/fpdfapi/render/cpdf_charposlist.cpp
index 4857b93498..05f441cc0f 100644
--- a/core/fpdfapi/render/cpdf_charposlist.cpp
+++ b/core/fpdfapi/render/cpdf_charposlist.cpp
@@ -11,6 +11,7 @@
CPDF_CharPosList::CPDF_CharPosList() {
m_pCharPos = nullptr;
+ m_nChars = 0;
}
CPDF_CharPosList::~CPDF_CharPosList() {