diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2012-03-02 00:58:39 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2012-03-06 16:10:22 +0100 |
commit | 3e17c272716912611513818c0845bc7093b67241 (patch) | |
tree | fe1cd6646fda2056194835e9c4fa57ac7773f547 /pdf | |
parent | 126417304a0286c8998a5856b3fdae92357a785d (diff) | |
download | mupdf-3e17c272716912611513818c0845bc7093b67241.tar.xz |
Warn instead of throw when permissions are missing in encrypted PDF.
Diffstat (limited to 'pdf')
-rw-r--r-- | pdf/pdf_crypt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf/pdf_crypt.c b/pdf/pdf_crypt.c index cbd495d2..510acc7b 100644 --- a/pdf/pdf_crypt.c +++ b/pdf/pdf_crypt.c @@ -207,8 +207,8 @@ pdf_new_crypt(fz_context *ctx, pdf_obj *dict, pdf_obj *id) crypt->p = pdf_to_int(obj); else { - pdf_free_crypt(ctx, crypt); - fz_throw(ctx, "encryption dictionary missing permissions value"); + fz_warn(ctx, "encryption dictionary missing permissions"); + crypt->p = 0xfffffffc; } if (crypt->r == 5) |