Load the first-page xref stream in linearized PDFs.

The header in linearized PDFs contain the first-page xref table, but the
first-page trailer can also reference a first-page xref stream. Now that
CPDF_Parser::LoadLinearizedAllCrossRefV4() can correctly figure out
where that stream is, try loading it.

Bug: pdfium:1335
Change-Id: I258cc231439c45effa49202a19d5bce809131a65
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/62552
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
diff --git a/core/fpdfapi/parser/cpdf_parser.cpp b/core/fpdfapi/parser/cpdf_parser.cpp
index a564ac8..6ce5853 100644
--- a/core/fpdfapi/parser/cpdf_parser.cpp
+++ b/core/fpdfapi/parser/cpdf_parser.cpp
@@ -402,6 +402,9 @@
         std::move(m_CrossRefTable));
   }
 
+  if (xref_stream_list[0] && !LoadCrossRefV5(&xref_stream_list[0], false))
+    return false;
+
   for (size_t i = 1; i < xref_list.size(); ++i) {
     if (!LoadCrossRefV4(xref_list[i], false))
       return false;