diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2023-03-12 11:43:07 +0000 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2023-03-13 08:57:56 +0000 |
commit | 1e05a2cd0825027c731a81b35c8f0f7bee133491 (patch) | |
tree | 726f49f5bbc08b66895862b81164a420772c8a64 /pdf | |
parent | e4ea7e1bd9e29813e273a4ca6d001b4279e8f17c (diff) | |
download | ghostpdl-1e05a2cd0825027c731a81b35c8f0f7bee133491.tar.gz |
GhostPDF - Use the correct encryption configuration for streams
Bug 706474 "Segfault in gs for PDF with encrypted streams and unencrypted strings"
This is a simple typo, unencrypted streams are handled by an early exit
from pdfi_filter, so we should never see a CRYPT_IDENTITY case, just
as the comment says. But we were looking at the string encryption,
not the stream encryption. A one letter typo....
Diffstat (limited to 'pdf')
-rw-r--r-- | pdf/pdf_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_file.c b/pdf/pdf_file.c index d98eb83e8..1a38dc198 100644 --- a/pdf/pdf_file.c +++ b/pdf/pdf_file.c @@ -1229,7 +1229,7 @@ int pdfi_filter(pdf_context *ctx, pdf_stream *stream_obj, pdf_c_stream *source, SubFile_stream->original = source->s; - switch(ctx->encryption.StrF) { + switch(ctx->encryption.StmF) { case CRYPT_IDENTITY: /* Can't happen, handled above */ break; |