mutt stable branch with some hacks
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Revert db13010a2e8d but add a comment. (see #3870)

X509_NAME_oneline() always NULL-terminates the string, even when it
has to truncate the data to fit in buf.

+4 -3
+4 -3
mutt_ssl.c
··· 969 969 #ifdef DEBUG 970 970 char buf[STRING]; 971 971 972 - buf[STRING - 1] = '\0'; 972 + /* Note that X509_NAME_online will NULL-terminate buf, even when it 973 + * has to truncate the data. */ 973 974 dprint (1, (debugfile, "ssl_check_certificate: checking cert %s\n", 974 975 X509_NAME_oneline (X509_get_subject_name (data->cert), 975 - buf, sizeof (buf) - 1))); 976 + buf, sizeof (buf)))); 976 977 #endif 977 978 978 979 if ((preauthrc = ssl_check_preauth (data->cert, conn->account.host)) > 0) ··· 992 993 993 994 dprint (1, (debugfile, "ssl_check_certificate: checking cert chain entry %s\n", 994 995 X509_NAME_oneline (X509_get_subject_name (cert), 995 - buf, sizeof (buf) - 1))); 996 + buf, sizeof (buf)))); 996 997 997 998 /* if the certificate validates or is manually accepted, then add it to 998 999 * the trusted set and recheck the peer certificate */