From 5d9d80beba1caa5828093dd1932fd806df1e644b Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 12 Aug 2018 22:32:40 -0400 Subject: [PATCH] Fix fallback logic for encryption (fixes #229) --- libqpdf/QPDF_encryption.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libqpdf/QPDF_encryption.cc b/libqpdf/QPDF_encryption.cc index b05e070b..21cbb266 100644 --- a/libqpdf/QPDF_encryption.cc +++ b/libqpdf/QPDF_encryption.cc @@ -1124,6 +1124,7 @@ QPDF::decryptString(std::string& str, int objid, int generation) // To avoid repeated warnings, reset cf_string. Assume // we'd want to use AES if V == 4. this->m->cf_string = e_aes; + use_aes = true; break; } }