parent
d30fc63d00
commit
aaf1262ecc
@ -1,16 +0,0 @@
|
|||||||
diff -rupN --no-dereference podofo-0.9.7/src/podofo/base/PdfEncrypt.cpp podofo-0.9.7-new/src/podofo/base/PdfEncrypt.cpp
|
|
||||||
--- podofo-0.9.7/src/podofo/base/PdfEncrypt.cpp 2019-01-15 14:04:40.000000000 +0100
|
|
||||||
+++ podofo-0.9.7-new/src/podofo/base/PdfEncrypt.cpp 2022-01-28 10:14:44.010676200 +0100
|
|
||||||
@@ -615,6 +615,12 @@ PdfEncrypt* PdfEncrypt::CreatePdfEncrypt
|
|
||||||
&& PdfEncrypt::IsEncryptionEnabled( ePdfEncryptAlgorithm_RC4V2 ) )
|
|
||||||
{
|
|
||||||
// [Alexey] - lLength is pdf_int64. Please make changes in encryption algorithms
|
|
||||||
+ // [mabri] - Fix CVE-2018-12983: Check key length lLength here
|
|
||||||
+ // to prevent stack-based buffer over-read in line 867 of this file
|
|
||||||
+ if (lLength > MD5_DIGEST_LENGTH * 8) // lLength in bits, md5 in bytes
|
|
||||||
+ {
|
|
||||||
+ PODOFO_RAISE_ERROR_INFO( ePdfError_ValueOutOfRange, "Given key length too large for MD5." );
|
|
||||||
+ }
|
|
||||||
pdfEncrypt = new PdfEncryptRC4(oValue, uValue, pValue, rValue, ePdfEncryptAlgorithm_RC4V2, static_cast<int>(lLength), encryptMetadata);
|
|
||||||
}
|
|
||||||
else
|
|
@ -1 +1 @@
|
|||||||
SHA512 (podofo-0.9.7.tar.gz) = 0e699739c2fb7d4d02ffca371504bb19f3a8a97ddcbfc06f8d9636db9e73064b4f633f7f09bce92140bb2174610ad68c1e5f8460d474d176ab803ed28295251b
|
SHA512 (podofo-0.9.8.tar.gz) = b220322114450f1656c73d325f5172bc4cec0b1913e98b4eb2455f8ed7394bcaa47438d41003c9678937ef44d411e135431ddd6784f83d3663337d471baa02b1
|
||||||
|
Loading…
Reference in new issue