diff options
Diffstat (limited to 'source/pdf/pdf-crypt.c')
-rw-r--r-- | source/pdf/pdf-crypt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/pdf/pdf-crypt.c b/source/pdf/pdf-crypt.c index a62b12f0..1ceaa1be 100644 --- a/source/pdf/pdf-crypt.c +++ b/source/pdf/pdf-crypt.c @@ -814,7 +814,8 @@ pdf_document_permissions(fz_context *ctx, pdf_document *doc) { if (doc->crypt) return doc->crypt->p; - return PDF_DEFAULT_PERM_FLAGS; + /* all permissions granted, reserved bits set appropriately */ + return (int)0xFFFFFFFC; } unsigned char * |