| Index: core/fpdfapi/fpdf_parser/cpdf_standard_crypto_handler.cpp
|
| diff --git a/core/fpdfapi/fpdf_parser/cpdf_standard_crypto_handler.cpp b/core/fpdfapi/fpdf_parser/cpdf_standard_crypto_handler.cpp
|
| index 46384244e8109ad7162d818bc1dc02c7e5fa7e65..6bfe1b60b3ee6281069b462c406189438a9f9c63 100644
|
| --- a/core/fpdfapi/fpdf_parser/cpdf_standard_crypto_handler.cpp
|
| +++ b/core/fpdfapi/fpdf_parser/cpdf_standard_crypto_handler.cpp
|
| @@ -20,9 +20,9 @@ void IPDF_CryptoHandler::Decrypt(uint32_t objnum,
|
| CFX_ByteString& str) {
|
| CFX_BinaryBuf dest_buf;
|
| void* context = DecryptStart(objnum, gennum);
|
| - DecryptStream(context, (const uint8_t*)str, str.GetLength(), dest_buf);
|
| + DecryptStream(context, str.raw_str(), str.GetLength(), dest_buf);
|
| DecryptFinish(context, dest_buf);
|
| - str = dest_buf;
|
| + str = CFX_ByteString(dest_buf.GetBuffer(), dest_buf.GetSize());
|
| }
|
|
|
| void CPDF_StandardCryptoHandler::CryptBlock(FX_BOOL bEncrypt,
|
|
|