The following line of code causes a fatal error:

qDebug() << QSslCertificate();

The stack trace of the crash is:
        libeay32.dll!015d8d24()         
        [Frames below may be incorrect and/or missing, no symbols loaded for
libeay32.dll]
        QtNetworkd4.dll!q_X509_get_ext_d2i(x509_st * a=0x00000000, int b=85,
int * c=0x00000000, int * d=0x00000000)  Line 225 + 0x34 bytes  C++
>       QtNetworkd4.dll!QSslCertificate::alternateSubjectNames()  Line 375 +
0x14 bytes      C++
        QtNetworkd4.dll!operator<<(QDebug debug={...}, const QSslCertificate
& certificate={...})  Line 765 + 0x55 bytes     C++
        testclient.exe!TestApplication::run()  Line 47 + 0x6e bytes     C++
        testclient.exe!main(int argc=1, char * * argv=0x01105058)  Line 8 +
0x8 bytes       C++
        testclient.exe!__tmainCRTStartup()  Line 582 + 0x19 bytes       C
        testclient.exe!mainCRTStartup()  Line 399       C
        kernel32.dll!75c13833()         
        ntdll.dll!7701a9bd()    
(sorry for the nasty msvc output)

QSslCertificate::subjectAlternateNames() calls
STACK *altNames = (STACK *)q_X509_get_ext_d2i(d->x509,
NID_subject_alt_name, 0, 0);
while d->x509 is null, leading to a crash inside qsslsocket_openssl_symbols.cpp.


This has been tested and causes crashes on both windows and linux.

To unsubscribe - send "unsubscribe" in the subject to [EMAIL PROTECTED]

Reply via email to