SOURCES: koffice-CAN-2005-0064.patch (NEW) - new
charles
charles at pld-linux.org
Sun Sep 18 19:38:52 CEST 2005
Author: charles Date: Sun Sep 18 17:38:52 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- new
---- Files affected:
SOURCES:
koffice-CAN-2005-0064.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/koffice-CAN-2005-0064.patch
diff -u /dev/null SOURCES/koffice-CAN-2005-0064.patch:1.1
--- /dev/null Sun Sep 18 19:38:52 2005
+++ SOURCES/koffice-CAN-2005-0064.patch Sun Sep 18 19:38:47 2005
@@ -0,0 +1,31 @@
+--- filters/kword/pdf/xpdf/xpdf/Decrypt.cc.jn 2002-12-06 00:44:32.000000000 +0100
++++ filters/kword/pdf/xpdf/xpdf/Decrypt.cc 2005-01-14 13:38:48.192647128 +0100
+@@ -132,13 +132,19 @@ GBool Decrypt::makeFileKey2(int encVersi
+ Guchar *buf;
+ Guchar test[32];
+ Guchar fState[256];
+- Guchar tmpKey[16];
++ Guchar *tmpKey;
+ Guchar fx, fy;
+ int len, i, j;
+ GBool ok;
+
++ // check whether we have non-zero keyLength
++ if ( !keyLength ) {
++ return gFalse;
++ }
++
+ // generate file key
+ buf = (Guchar *)gmalloc(68 + fileID->getLength());
++ tmpKey = (Guchar *)gmalloc(keyLength * sizeof(Guchar));
+ if (userPassword) {
+ len = userPassword->getLength();
+ if (len < 32) {
+@@ -191,6 +197,7 @@ GBool Decrypt::makeFileKey2(int encVersi
+ ok = gFalse;
+ }
+
++ gfree(tmpKey);
+ gfree(buf);
+ return ok;
+ }
================================================================
More information about the pld-cvs-commit
mailing list