Mostly working, but not complete, port of openssl
[fedora-mingw.git] / openssl / openssl-0.9.8g-speed-bug.patch
diff --git a/openssl/openssl-0.9.8g-speed-bug.patch b/openssl/openssl-0.9.8g-speed-bug.patch
new file mode 100644 (file)
index 0000000..939facc
--- /dev/null
@@ -0,0 +1,13 @@
+openssl/apps/speed.c     1.126.2.8 -> 1.126.2.9
+
+--- openssl/apps/speed.c 2007/05/13 15:04:14 1.126.2.8
++++ openssl/apps/speed.c 2007/11/15 13:33:47 1.126.2.9
+@@ -577,7 +577,7 @@
+ #define MAX_BLOCK_SIZE 64
+ #endif
+       unsigned char DES_iv[8];
+-      unsigned char iv[MAX_BLOCK_SIZE/8];
++      unsigned char iv[2*MAX_BLOCK_SIZE/8];
+ #ifndef OPENSSL_NO_DES
+       DES_cblock *buf_as_des_cblock = NULL;
+       static DES_cblock key ={0x12,0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0};