Hi, 

For your information, bug fix proposal :

I am currently working with openssl and i compile it with TLS_DEBUG.
Using openssl library for a https connection terminated in core with SEGFAULT.

Here my workaround, that is to disable a print :

diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c
index d9cb059..fcd3396 100644
--- a/ssl/t1_enc.c
+++ b/ssl/t1_enc.c
@@ -907,8 +907,10 @@ printf("seq=");
 {int z; for (z=0; z<8; z++) printf("%02X ",seq[z]); printf("\n"); }
 printf("buf=");
 {int z; for (z=0; z<5; z++) printf("%02X ",buf[z]); printf("\n"); }
-printf("rec=");
+printf("rec=NOT_PRINTED");
+/* crashy. i don't catch buf[z] since it is unsigned char[5] and not related 
to rec...
 {unsigned int z; for (z=0; z<rec->length; z++) printf("%02X ",buf[z]); 
printf("\n"); }
+*/
 #endif
 
        if (ssl->version != DTLS1_VERSION && ssl->version != DTLS1_BAD_VER)


buffer printing seems just to reference the wrong buffer.


Regards,
Philippe Lhardy

Reply via email to