summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-06-17 13:44:03 +0100
committerRobin Watts <robin.watts@artifex.com>2016-06-17 13:45:03 +0100
commit27269d493d66e16bfd7a5b5a0b09c4f21693260b (patch)
tree2459311dc019ea8fbb3354eda6355a7d150bfdec
parent5e5d9490984b1424751687fd6d96ef81d76180e5 (diff)
downloadmupdf-27269d493d66e16bfd7a5b5a0b09c4f21693260b.tar.xz
Allow PDF strings to be > 16bits.
This stops Bug693111.pdf giving errors.
-rw-r--r--source/pdf/pdf-object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/pdf/pdf-object.c b/source/pdf/pdf-object.c
index fcb9f328..b9076dc8 100644
--- a/source/pdf/pdf-object.c
+++ b/source/pdf/pdf-object.c
@@ -48,7 +48,7 @@ typedef struct pdf_obj_num_s
typedef struct pdf_obj_string_s
{
pdf_obj super;
- unsigned short len;
+ unsigned int len;
char buf[1];
} pdf_obj_string;
@@ -145,7 +145,7 @@ pdf_obj *
pdf_new_string(fz_context *ctx, pdf_document *doc, const char *str, size_t len)
{
pdf_obj_string *obj;
- unsigned short l = (unsigned short)len;
+ unsigned int l = (unsigned int)len;
if ((size_t)l != len)
fz_throw(ctx, FZ_ERROR_GENERIC, "Overflow in pdf string");