From bc58de0409636f64200b14097e4c781ace12422d Mon Sep 17 00:00:00 2001 From: dsinclair Date: Wed, 8 Jun 2016 13:17:55 -0700 Subject: Set data availablity error. If we have been told we have a hint table, but fail to read the table, set the document status to error instead of just returning. BUG=pdfium:512 Review-Url: https://codereview.chromium.org/2040373003 --- core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp b/core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp index d3f9a54f4c..9018f06399 100644 --- a/core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp +++ b/core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp @@ -748,8 +748,10 @@ FX_BOOL CPDF_DataAvail::CheckHintTables(IPDF_DataAvail::DownloadHints* pHints) { } CPDF_Array* pHintStreamRange = pDict->GetArrayBy("H"); - if (!pHintStreamRange) + if (!pHintStreamRange) { + m_docStatus = PDF_DATAAVAIL_ERROR; return FALSE; + } FX_FILESIZE szHSStart = pHintStreamRange->GetDirectObjectAt(0) -- cgit v1.2.3