File CVE-2011-4576.patch of Package compat-openssl098.703

Index: openssl-0.9.8j/ssl/s3_enc.c
===================================================================
--- openssl-0.9.8j.orig/ssl/s3_enc.c
+++ openssl-0.9.8j/ssl/s3_enc.c
@@ -480,6 +480,9 @@ int ssl3_enc(SSL *s, int send)
 
 			/* we need to add 'i-1' padding bytes */
 			l+=i;
+			/* the last of these zero bytes will be overwritten
+			 * with the padding length. */
+			memset(&rec->input[rec->length], 0, i);
 			rec->length+=i;
 			rec->input[l-1]=(i-1);
 			}