From bab9a98b71f351cf9f4eb39138bca55e3be4ef15 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 24 Dec 2015 02:26:13 -0800 Subject: Call CheckLinearizedFirstPage() when loading the first linearized page. Otherwise CheckLinearizedFirstPage() has no other callers. BUG=pdfium:330 R=jun_fang@foxitsoftware.com Review URL: https://codereview.chromium.org/1543193002 . --- core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp index 2a271f1179..05f407bfd3 100644 --- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp +++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp @@ -4381,6 +4381,8 @@ int CPDF_DataAvail::IsPageAvail(int32_t iPage, IFX_DownloadHints* pHints) { if (m_bLinearized) { if ((FX_DWORD)iPage == m_dwFirstPageNo) { + if (!CheckLinearizedFirstPage(iPage, pHints)) + return DataNotAvailable; m_pagesLoadState.insert(iPage); return DataAvailable; } -- cgit v1.2.3