diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-11-22 17:23:35 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-11-23 09:59:43 +0000 |
commit | a2afcdf0f2b6cb0a342c38933d347169c0c7b6e4 (patch) | |
tree | 2a575dbf6102100946bf4f2a1ef4aa25c1f1a695 /source/pdf | |
parent | 5c8bb19daaf6d83f1ed5d6abfd91bfecaf3e273a (diff) | |
download | mupdf-a2afcdf0f2b6cb0a342c38933d347169c0c7b6e4.tar.xz |
Fix pdf-write bug when ascii encoding.
Diffstat (limited to 'source/pdf')
-rw-r--r-- | source/pdf/pdf-write.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/pdf/pdf-write.c b/source/pdf/pdf-write.c index 3401f59d..224da50c 100644 --- a/source/pdf/pdf-write.c +++ b/source/pdf/pdf-write.c @@ -1670,6 +1670,7 @@ static void copystream(fz_context *ctx, pdf_document *doc, pdf_write_state *opts tmp = hexbuf(ctx, data, len); fz_drop_buffer(ctx, buf); buf = tmp; + len = fz_buffer_storage(ctx, buf, &data); addhexfilter(ctx, doc, obj); } @@ -1734,6 +1735,7 @@ static void expandstream(fz_context *ctx, pdf_document *doc, pdf_write_state *op tmp = hexbuf(ctx, data, len); fz_drop_buffer(ctx, buf); buf = tmp; + len = fz_buffer_storage(ctx, buf, &data); addhexfilter(ctx, doc, obj); } |