diff options
author | Lei Zhang <thestig@chromium.org> | 2015-12-24 02:26:13 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-12-24 02:26:13 -0800 |
commit | bab9a98b71f351cf9f4eb39138bca55e3be4ef15 (patch) | |
tree | a92d7293d7a403fb113519f5d8fabfc10c2ee738 /core | |
parent | 56b56a86842e3e8f81dfefab994cca8934a3c4d4 (diff) | |
download | pdfium-bab9a98b71f351cf9f4eb39138bca55e3be4ef15.tar.xz |
Call CheckLinearizedFirstPage() when loading the first linearized page.chromium/2602
Otherwise CheckLinearizedFirstPage() has no other callers.
BUG=pdfium:330
R=jun_fang@foxitsoftware.com
Review URL: https://codereview.chromium.org/1543193002 .
Diffstat (limited to 'core')
-rw-r--r-- | core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |