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

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