Index: core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp |
diff --git a/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp b/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp |
index 0886d3ff5320683e73afe883fedfe76e4277973e..3abbcee0469254dd0a9950884e8112a5e06ca1c6 100644 |
--- a/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp |
+++ b/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp |
@@ -415,9 +415,6 @@ FX_BOOL CPDF_Encryptor::Initialize(CPDF_CryptoHandler* pHandler, int objnum, FX_ |
} |
m_dwSize = pHandler->EncryptGetSize(objnum, 0, src_data, src_size); |
m_pData = FX_Alloc(FX_BYTE, m_dwSize); |
- if(!m_pData) { |
- return FALSE; |
- } |
pHandler->EncryptContent(objnum, 0, src_data, src_size, m_pData, m_dwSize); |
m_bNewBuf = TRUE; |
return TRUE; |