commit | 00714a05fb5d4766e9f460d9764191eda9706db9 | [log] [tgz] |
---|---|---|
author | Patrik Weiskircher <patrik@pspdfkit.com> | Thu May 09 17:12:08 2019 +0000 |
committer | Chromium commit bot <commit-bot@chromium.org> | Thu May 09 17:12:08 2019 +0000 |
tree | dd0b5f976a19762defc17f6c8cdd6e56423e5084 | |
parent | b2a4760135dbfe7f53d4a21512c561fd3b09e1bb [diff] |
Possibly fix null-dereference when trying to access font. Bug: chromium:961250 Change-Id: If0f89d858368317f3cddf3f7976d4a6c45ec7b8b Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/54150 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/core/fpdfapi/page/cpdf_tilingpattern.cpp b/core/fpdfapi/page/cpdf_tilingpattern.cpp index 8c30cdc..f6655a6 100644 --- a/core/fpdfapi/page/cpdf_tilingpattern.cpp +++ b/core/fpdfapi/page/cpdf_tilingpattern.cpp
@@ -52,6 +52,7 @@ CPDF_AllStates allStates; allStates.m_ColorState.Emplace(); allStates.m_GraphState.Emplace(); + allStates.m_TextState.Emplace(); allStates.m_GeneralState = pPageObj->m_GeneralState; form->ParseContent(&allStates, &matrix, nullptr, nullptr); m_BBox = pDict->GetRectFor("BBox");