Blame SOURCES/openssl-fips-0.9.8e-cve-2011-4576.patch

c4366c
diff -up openssl-fips-0.9.8e/CHANGES.padding openssl-fips-0.9.8e/CHANGES
c4366c
diff -up openssl-fips-0.9.8e/ssl/s3_enc.c.padding openssl-fips-0.9.8e/ssl/s3_enc.c
c4366c
--- openssl-fips-0.9.8e/ssl/s3_enc.c.padding	2007-03-22 01:39:14.000000000 +0100
c4366c
+++ openssl-fips-0.9.8e/ssl/s3_enc.c	2012-01-16 10:40:02.146294455 +0100
c4366c
@@ -480,6 +480,9 @@ int ssl3_enc(SSL *s, int send)
c4366c
 
c4366c
 			/* we need to add 'i-1' padding bytes */
c4366c
 			l+=i;
c4366c
+			/* the last of these zero bytes will be overwritten
c4366c
+			 * with the padding length. */
c4366c
+			memset(&rec->input[rec->length], 0, i);
c4366c
 			rec->length+=i;
c4366c
 			rec->input[l-1]=(i-1);
c4366c
 			}