From 5fb0ad8adac5fcbf8c8f1965164f41d11c0af669 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 10 Feb 2017 08:48:17 +0100 Subject: core: fix a few uninitialized members Found by Coverity when scanning the bundled pdfium-3004 in LibreOffice. This fixes: - CID 1400341: Uninitialized members (UNINIT_CTOR) CFX_ImageRenderer::m_pIccTransform - CID 1400340: Uninitialized members (UNINIT_CTOR) CPDF_CharPosList::m_nChars - CID 1400339: Uninitialized members (UNINIT_CTOR) CPDF_StreamContentParser::m_PathStartX/Y - CID 1400337: Uninitialized members (UNINIT_CTOR) CFX_ScanlineCompositor::m_pIccTransform Change-Id: Iab3862eb77be8bf379093a47f6c60ce987099982 Reviewed-on: https://pdfium-review.googlesource.com/2630 Reviewed-by: dsinclair Commit-Queue: dsinclair --- core/fpdfapi/render/cpdf_charposlist.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'core/fpdfapi/render') 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() { -- cgit v1.2.3