mirror of
https://pdfium.googlesource.com/pdfium
synced 2026-07-31 19:12:12 +08:00
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>
475 B
475 B