summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-10-08 12:09:58 -0700
committerLei Zhang <thestig@chromium.org>2015-10-08 12:09:58 -0700
commit6d5649b46c73bde7de2488b5631ecbf0d4a3bb05 (patch)
tree1e375334c4c2f952eb929ad39ae801a63300fe16 /fpdfsdk
parentb3914936da847205d1f1d2dc34ecf2d76e74816a (diff)
downloadpdfium-6d5649b46c73bde7de2488b5631ecbf0d4a3bb05.tar.xz
Merge to XFA: Relax the check on 0 length streams.
CPDF_SyntaxParser::ReadStream() originally created stream objects when the length is 0. Commit 2526930 tightened the constraint and returned NULL. This has some adverse affects, as seen in Chromium's print preview of PDFs. Instead, relax the constraint a little so when the length is 0, return a CPDF_Stream with NULL data and size 0. BUG=531835 Review URL: https://codereview.chromium.org/1394743002 . (cherry picked from commit 4fa0e27ba39f49ba92fb4c160ab836a6f1dd2893) Review URL: https://codereview.chromium.org/1400613002 .
Diffstat (limited to 'fpdfsdk')
0 files changed, 0 insertions, 0 deletions