Fix blank page issues caused by too strict check
authorJun Fang <jun_fang@foxitsoftware.com>
Thu, 20 Nov 2014 02:58:01 +0000 (18:58 -0800)
committerJun Fang <jun_fang@foxitsoftware.com>
Thu, 20 Nov 2014 02:58:01 +0000 (18:58 -0800)
commitef619d0562b39f30943cfdc4985a0df233d00e42
tree4a52a65097c2d8d8e3f3eb646905a9d8ee2f1436
parent90e29cbcdc6661b7191da9b4079428847da617b6
Fix blank page issues caused by too strict check

Before this fix, PDF parser aborts the parsering process when detecting an error.
For this case, PDF parser just gives up parsering when it detects that the length of
image stream is incorrect. The solution to this case is to find the tag "endstream"
and "endobj" to calculate the length rather than aborting the parsering process.

BUG=433339
R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/743263002
core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp