summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pdf/pdf_crypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_crypt.c b/pdf/pdf_crypt.c
index 25f3d3a4..a8f92823 100644
--- a/pdf/pdf_crypt.c
+++ b/pdf/pdf_crypt.c
@@ -315,7 +315,7 @@ pdf_parse_crypt_filter(fz_context *ctx, pdf_crypt_filter *cf, pdf_crypt *crypt,
fz_throw(ctx, "invalid key length: %d", cf->length);
if ((crypt->r == 1 || crypt->r == 2 || crypt->r == 4) &&
- (cf->length < 0 || cf->length > 32))
+ (cf->length < 0 || cf->length > 256))
fz_throw(ctx, "invalid key length: %d", cf->length);
if (crypt->r == 5 &&
(cf->length != 128 && cf->length != 192 && cf->length == 256))