diff options
author | Robin Watts <robin.watts@artifex.com> | 2015-04-03 16:30:19 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-04-03 16:37:18 +0100 |
commit | d4ae4095cc1121b9a7a5ca9a444adaa08906e846 (patch) | |
tree | e75ad74124830f429df2a8200ce37be66f75c2ea /platform/windows/mupdf_cpp/DocumentPage.h | |
parent | 57121ca1cc81b502f3a4a0f79759404d0fb0d846 (diff) | |
download | mupdf-d4ae4095cc1121b9a7a5ca9a444adaa08906e846.tar.xz |
Bug 694713: Avoid assert when using pdf_page_write
When writing a pdf page, we pass page->contents to pdf_new_pdf_device.
This object is assumed to be a dictionary (stream) that can be updated
with the Length and stream contents once the page writing process has
completed.
When we are rewriting a pdf page however, this can go wrong; page->contents
can be an array of objects. Not only this, in general it would be
possible for several pages to share the same page contents (or
maybe some of the elements of a page contents array). Updating one page
should not update the others.
We therefore update pdf_page_write to always create a new page->contents
object and use that.
Thanks to Michael Cadilhac for spotting the basic problem here.
Diffstat (limited to 'platform/windows/mupdf_cpp/DocumentPage.h')
0 files changed, 0 insertions, 0 deletions