diff options
author | Lei Zhang <thestig@chromium.org> | 2015-10-08 10:34:28 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-10-08 10:34:28 -0700 |
commit | 4fa0e27ba39f49ba92fb4c160ab836a6f1dd2893 (patch) | |
tree | ee10b401791dc9c80242e7e700f66d026cd6ebc7 /fpdfsdk/src/javascript/JS_Value.h | |
parent | 1f439a7a3b7c44235ecdac9a411add8fb62b0d83 (diff) | |
download | pdfium-4fa0e27ba39f49ba92fb4c160ab836a6f1dd2893.tar.xz |
Relax the check on 0 length streams.chromium/2531
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 .
Diffstat (limited to 'fpdfsdk/src/javascript/JS_Value.h')
0 files changed, 0 insertions, 0 deletions