DescriptionRelax 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
Committed: https://pdfium.googlesource.com/pdfium/+/4fa0e27ba39f49ba92fb4c160ab836a6f1dd2893
Patch Set 1 #
Total comments: 4
Patch Set 2 : Only use pCryptoHandler when there is data #Patch Set 3 : relax another len <= 0 check #Messages
Total messages: 10 (1 generated)
|