Chromium Code Reviews| Index: core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp |
| diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp |
| index 635fc6b0ee3794da98890244d159f3701ad62ce1..c3e35d882db281a7a4f4e0e9f5f4f4bf68481acc 100644 |
| --- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp |
| +++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp |
| @@ -95,13 +95,13 @@ void CPDF_Document::LoadPages() |
| extern void FPDF_TTFaceMapper_ReleaseDoc(CPDF_Document*); |
| CPDF_Document::~CPDF_Document() |
| { |
| - if (m_pDocRender) { |
| - CPDF_ModuleMgr::Get()->GetRenderModule()->DestroyDocData(m_pDocRender); |
| - } |
| if (m_pDocPage) { |
| CPDF_ModuleMgr::Get()->GetPageModule()->ReleaseDoc(this); |
| CPDF_ModuleMgr::Get()->GetPageModule()->ClearStockFont(this); |
| } |
| + if (m_pDocRender) { |
|
Tom Sepez
2014/10/21 21:05:29
Are you sure this doesn't introduce new UAFs from
Bo Xu
2014/10/21 21:19:42
Hi Tom, I have the same question and checked the d
|
| + CPDF_ModuleMgr::Get()->GetRenderModule()->DestroyDocData(m_pDocRender); |
| + } |
| } |
| #define FX_MAX_PAGE_LEVEL 1024 |
| CPDF_Dictionary* CPDF_Document::_FindPDFPage(CPDF_Dictionary* pPages, int iPage, int nPagesToGo, int level) |