pdfium/testing/resources/bug_905142.pdf
Lei Zhang c160069648 Avoid writing out empty streams in CPDF_Stream::WriteTo().
Do not call CFX_FileBufferArchive::WriteBlock() with no data to write
out to avoid an ASSERT() failure. Although
CFX_FileBufferArchive::WriteBlock() can handle no data just fine, it is
an IFX_WriteStream::WriteBlock() implementation and not all
IFX_WriteStream::WriteBlock() implementations can handle no data.

BUG=chromium:905142

Change-Id: Icef8460443a9363526679261aac0c1ef74bccec4
Reviewed-on: https://pdfium-review.googlesource.com/c/45531
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
2018-11-14 23:12:58 +00:00

475 B