DynamoRIO / DynamoRIO/drmemory
Warnings with QSSL
- Dominant language
- C
- Stars
- 2.7k
- Forks
- 290
- PR merge metrics
- No merged PRs in 30d
Description
I get the following warnings by using this code:
https://github.com/emqtt/qmqtt/blob/master/src/qmqtt_ssl_socket.cpp
https://github.com/emqtt/qmqtt/blob/master/src/qmqtt_ssl_socket.h
I guess that they are all just false positives and may be added to the ignore list?
```
Error #1: INVALID HEAP ARGUMENT to Windows API routine: invalid heap HANDLE 0x00000000
#0 replace_RtlQueryHeapInformation [d:\drmemory_package\common\alloc_replace.c:4010]
#1 ntdll.dll!RtlQueryProcessHeapInformation +0x2bd (0x772774be )
#2 ntdll.dll!RtlQueryProcessDebugInformation +0x3a3 (0x772771a4 )
#3 KERNEL32.dll!Heap32First +0x52 (0x76529163 )
#4 LIBEAY32.dll!RAND_poll +0x543 (0x647844e4 )
#5 LIBEAY32.dll!RAND_SSLeay +0x94c (0x6478363d )
#6 Qt5Networkd.dll!QSslKey::isNull +0x10eec0 (0x64cc9494 )
#7 Qt5Networkd.dll!QSslKey::isNull +0x10292e (0x64cbcf02 )
#8 Qt5Networkd.dll!QSslKey::isNull +0x102334 (0x64cbc908 )
#9 Qt5Networkd.dll!QSslKey::isNull +0x1023f4 (0x64cbc9c8 )
#10 Qt5Networkd.dll!QSslKey::isNull +0xea0ab (0x64ca467f )
#11 Qt5Networkd.dll!QSslKey::isNull +0xe8a10 (0x64ca2fe4 )
#12 Qt5Networkd.dll!QSslKey::isNull +0xecb75 (0x64ca7149 )
#13 Qt5Networkd.dll!QSslKey::isNull +0xf44c6 (0x64caea9a )
#14 Qt5Networkd.dll!QSslKey::isNull +0x102b5b (0x64cbd12f )
#15 Qt5Networkd.dll!QSslKey::isNull +0xf1e23 (0x64cac3f7 )
#16 qmqtt.dll!QMQTT::SslSocket::SslSocket [h:\qt\qmqtt\src\qmqtt_ssl_socket.cpp:40]
#17 qmqtt.dll!QMQTT::SslNetwork::SslNetwork [h:\qt\qmqtt\src\qmqtt_ssl_network.cpp:52]
#18 qmqtt.dll!QMQTT::ClientPrivate::init [h:\qt\qmqtt\src\qmqtt_client_p.cpp:99]
#19 qmqtt.dll!QMQTT::Client::Client [h:\qt\qmqtt\src\qmqtt_client.cpp:55]
Note: @0:00:04.778 in thread 9132
Error #3: UNINITIALIZED READ: reading 0x03015077-0x03015093 28 byte(s) within 0x03015068-0x03015145
#0 system call NtDeviceIoControlFile AFD_SEND_INFO.BufferArray[i].buf
#1 MSWSOCK.dll!Tcpip4_WSHGetWildcardSockaddr +0x48e (0x7237b19f )
#2 WS2_32.dll!WSASend +0xf9 (0x7618102a )
#3 Qt5Networkd.dll!QSslKey::isNull +0xdccf1 (0x64c972c5 )
#4 Qt5Networkd.dll!QSslKey::isNull +0xd8787 (0x64c92d5b )
#5 Qt5Networkd.dll!QSslKey::isNull +0xcec85 (0x64c89259 )
#6 Qt5Networkd.dll!QSslKey::isNull +0xcdf7e (0x64c88552 )
#7 Qt5Networkd.dll!QSslKey::isNull +0xcc578 (0x64c86b4c )
#8 Qt5Networkd.dll!QSslKey::isNull +0xf3745 (0x64cadd19 )
#9 qmqtt.dll!QMQTT::SslSocket::connectToHost [h:\qt\qmqtt\src\qmqtt_ssl_socket.cpp:71]
#10 qmqtt.dll!QMQTT::SslNetwork::connectToHost [h:\qt\qmqtt\src\qmqtt_ssl_network.cpp:114]
#11 qmqtt.dll!QMQTT::SslNetwork::connectToHost [h:\qt\qmqtt\src\qmqtt_ssl_network.cpp:108]
#12 qmqtt.dll!QMQTT::ClientPrivate::connectToHost [h:\qt\qmqtt\src\qmqtt_client_p.cpp:154]
#13 qmqtt.dll!QMQTT::Client::connectToHost [h:\qt\qmqtt\src\qmqtt_client.cpp:256]
#14 Microgate::HandleBtSerial [h:\qt\bluetoothmqtt_bridge\src\btserial.cpp:77]
#15 ::operator() [h:\qt\bluetoothmqtt_bridge\src\main.cpp:130]
#16 QtPrivate::FunctorCall<>::call [c:\qt\5.6\msvc2013\include\qtcore\qobjectdefs_impl.h:495]
#17 QtPrivate::Functor<>::call<> [c:\qt\5.6\msvc2013\include\qtcore\qobjectdefs_impl.h:552]
#18 QtPrivate::QFunctorSlotObject<>::impl [c:\qt\5.6\msvc2013\include\qtcore\qobject_impl.h:192]
#19 Qt5Cored.dll!uppercasebase +0x3227d7 (0x63f2faaf )
Note: @0:00:11.689 in thread 9132
Error #4: UNINITIALIZED READ: reading 0x00dab8dc-0x00dab8e0 4 byte(s)
#0 LIBEAY32.dll!RSA_sign +0x348 (0x647637a8 )
#1 LIBEAY32.dll!RSA_verify +0x3c (0x647639cd )
Note: @0:00:12.020 in thread 9132
Note: instruction: cmp %esi (%eax)
Error #5: UNINITIALIZED READ: reading register esi
#0 LIBEAY32.dll!AES_cbc_encrypt +0x840 (0x647ff3b0 )
#1 LIBEAY32.dll!AES_set_encrypt_key +0x4 (0x647ff475 )
#2 LIBEAY32.dll!EVP_aes_256_cfb8 +0x61 (0x6478b512 )
#3 LIBEAY32.dll!EVP_CipherInit_ex +0x235 (0x64789846 )
#4 SSLEAY32.dll!TLSv1_client_method +0x294b (0x648f6c5c )
#5 SSLEAY32.dll!SSLv3_server_method +0x3722 (0x648ec393 )
#6 SSLEAY32.dll!SSL_connect +0x1c (0x64902a0d )
#7 SSLEAY32.dll!SSLv23_server_method +0x866 (0x648f3cb7 )
#8 SSLEAY32.dll!SSLv23_server_method +0xaa8 (0x648f3ef9 )
#9 SSLEAY32.dll!SSL_connect +0x1c (0x64902a0d )
#10 Qt5Networkd.dll!QSslKey::isNull +0x10f144 (0x64cc9718 )
#11 Qt5Networkd.dll!QSslKey::isNull +0x103b0b (0x64cbe0df )
#12 Qt5Networkd.dll!QSslKey::isNull +0x1037ae (0x64cbdd82 )
#13 Qt5Networkd.dll!QSslKey::isNull +0xf572c (0x64cafd00 )
#14 Qt5Networkd.dll!QSslKey::isNull +0xf1aab (0x64cac07f )
#15 Qt5Cored.dll!uppercasebase +0x3153c1 (0x63f22699 )
#16 Qt5Cored.dll!uppercasebase +0x314e09 (0x63f220e1 )
#17 Qt5Cored.dll!uppercasebase +0x3ed2b1 (0x63ffa589 )
#18 Qt5Networkd.dll!QSslKey::isNull +0xcddb3 (0x64c88387 )
#19 Qt5Networkd.dll!QSslKey::isNull +0xcc55d (0x64c86b31 )
Note: @0:00:12.127 in thread 9132
Note: instruction: movzx 0xffffff80(%ebp,%esi) -> %ebx
Error #21: UNINITIALIZED READ: reading register dl
#0 SSLEAY32.dll!SSLv3_client_method +0x5852 (0x648f2022 )
#1 SSLEAY32.dll!TLSv1_client_method +0x2d77 (0x648f7088 )
#2 SSLEAY32.dll!SSLv3_client_method +0x32d0 (0x648efaa1 )
#3 SSLEAY32.dll!SSLv3_client_method +0x3abb (0x648f028c )
#4 SSLEAY32.dll!SSLv3_client_method +0x5067 (0x648f1838 )
#5 SSLEAY32.dll!SSLv3_client_method +0x4b00 (0x648f12d1 )
#6 SSLEAY32.dll!SSLv3_server_method +0x3814 (0x648ec485 )
#7 SSLEAY32.dll!SSL_connect +0x1c (0x64902a0d )
#8 Qt5Networkd.dll!QSslKey::isNull +0x10f144 (0x64cc9718 )
#9 Qt5Networkd.dll!QSslKey::isNull +0x103b0b (0x64cbe0df )
#10 Qt5Networkd.dll!QSslKey::isNull +0x1037ae (0x64cbdd82 )
#11 Qt5Networkd.dll!QSslKey::isNull +0xf572c (0x64cafd00 )
#12 Qt5Networkd.dll!QSslKey::isNull +0xf1aab (0x64cac07f )
#13 Qt5Cored.dll!uppercasebase +0x3153c1 (0x63f22699 )
#14 Qt5Cored.dll!uppercasebase +0x314e09 (0x63f220e1 )
#15 Qt5Cored.dll!uppercasebase +0x3ed2b1 (0x63ffa589 )
#16 Qt5Networkd.dll!QSslKey::isNull +0xcddb3 (0x64c88387 )
#17 Qt5Networkd.dll!QSslKey::isNull +0xcc55d (0x64c86b31 )
#18 Qt5Networkd.dll!QSslKey::isNull +0xf3745 (0x64cadd19 )
#19 qmqtt.dll!QMQTT::SslSocket::connectToHost [h:\qt\qmqtt\src\qmqtt_ssl_socket.cpp:71]
Note: @0:00:12.307 in thread 9132
Note: instruction: test %dl $0x01
Error #43: UNINITIALIZED READ: reading register ecx
#0 KERNELBASE.dll!FreeResource +0x43 (0x76dc28c3 )
#1 KERNELBASE.dll!FileTimeToLocalFileTime +0xb3 (0x76d9e654 )
#2 Qt5Cored.dll!uppercasebase +0x38119d (0x63f8e475 )
#3 Qt5Cored.dll!uppercasebase +0x134dc5 (0x63d4209d )
#4 Qt5Cored.dll!uppercasebase +0x120c29 (0x63d2df01 )
#5 Qt5Cored.dll!uppercasebase +0x107a3 (0x63c1da7b )
#6 Qt5Cored.dll!uppercasebase +0x5e62a (0x63c6b902 )
#7 Qt5Cored.dll!uppercasebase +0x5c9de (0x63c69cb6 )
#8 Qt5Cored.dll!uppercasebase +0x5bc7c (0x63c68f54 )
#9 Qt5Cored.dll!uppercasebase +0x1ac94b (0x63db9c23 )
#10 ::operator() [h:\qt\bluetoothmqtt_bridge\src\btserial.cpp:73]
#11 QtPrivate::FunctorCall<>::call [c:\qt\5.6\msvc2013\include\qtcore\qobjectdefs_impl.h:495]
#12 QtPrivate::Functor<>::call<> [c:\qt\5.6\msvc2013\include\qtcore\qobjectdefs_impl.h:552]
#13 QtPrivate::QFunctorSlotObject<>::impl [c:\qt\5.6\msvc2013\include\qtcore\qobject_impl.h:192]
#14 Qt5Cored.dll!uppercasebase +0x3227d7 (0x63f2faaf )
#15 Qt5Cored.dll!uppercasebase +0x315308 (0x63f225e0 )
#16 Qt5Cored.dll!uppercasebase +0x314e09 (0x63f220e1 )
#17 qmqtt.dll!QMQTT::Client::received [h:\qt\build-qmqtt-desktop_qt_5_6_0_msvc2013_32bit-debug\src\debug
\moc_qmqtt_client.cpp:494]
#18 qmqtt.dll!QMQTT::ClientPrivate::handlePublish [h:\qt\qmqtt\src\qmqtt_client_p.cpp:419]
#19 qmqtt.dll!QMQTT::ClientPrivate::onNetworkReceived [h:\qt\qmqtt\src\qmqtt_client_p.cpp:376]
Note: @0:00:40.800 in thread 9132
Note: instruction: mov (%ecx,%edx) -> %cl
```
Contributor guide
Assessment
This issue has not been assessed yet.