Merge to XFA: Add embedder test comparing with the last patch.
authorJUN FANG <jun_fang@foxitsoftware.com>
Fri, 3 Apr 2015 18:35:50 +0000 (11:35 -0700)
committerJUN FANG <jun_fang@foxitsoftware.com>
Fri, 3 Apr 2015 21:58:34 +0000 (14:58 -0700)
commitfbc7449fa39b5ad3424a80bda0e8563db546a58b
tree06b5b87562f66a717bfd395bca6e2213405126ed
parent2711c8a8743e74b372ec8c709f79e1f242d1cafe
Merge to XFA: Add embedder test comparing with the last patch.

When there is a wrong keyword like '??ze' in the dictionary
of the trailer, PDFium can't recognize it and aborts further
parsing. After this change, PDFium continues even it can't
get the right size at this moment. It will rebuild the cross
reference table later since the size of the table is missing.

BUG=459580
R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/1055323003
BUILD.gn
core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp
core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp [new file with mode: 0644]
pdfium.gyp
testing/resources/bug_459580.in [new file with mode: 0644]
testing/resources/bug_459580.pdf [new file with mode: 0644]