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 18:35:50 +0000 (11:35 -0700)
commite26ddf5eb0400c85680a865b6d4ddff293167169
tree8cb120a94abb6720105955885982674ea3bb0333
parent672bd1706a990069dce401afead6c2ecfcdb3357
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]