summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2012-03-02 00:58:39 +0100
committerTor Andersson <tor.andersson@artifex.com>2012-03-06 16:10:22 +0100
commit3e17c272716912611513818c0845bc7093b67241 (patch)
treefe1cd6646fda2056194835e9c4fa57ac7773f547
parent126417304a0286c8998a5856b3fdae92357a785d (diff)
downloadmupdf-3e17c272716912611513818c0845bc7093b67241.tar.xz
Warn instead of throw when permissions are missing in encrypted PDF.
-rw-r--r--pdf/pdf_crypt.c4
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)