diff options
-rw-r--r-- | pdf/pdf_obj.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pdf/pdf_obj.c b/pdf/pdf_obj.c index 7e7a64be0..34554dee8 100644 --- a/pdf/pdf_obj.c +++ b/pdf/pdf_obj.c @@ -814,6 +814,8 @@ static int pdfi_obj_dict_str(pdf_context *ctx, pdf_obj *obj, byte **data, int *l /* Handle empty dict specially */ if (dictsize == 0) { code = pdfi_bufstream_write(ctx, &bufstream, (byte *)"<< >>", 5); + if (code < 0) + goto exit; goto exit_copy; } |