qt5base-lts/tests/auto/network/ssl/qsslsocket
Timur Pocheptsov 73b9242d7e tst_QSslSocket::qtbug18498_peek() - fix several problems
It all started from the compiler's warnings about 'this' captured but
not used in lambdas. While fixing this it was noticed that 'client' socket
has a lifetime longer than the test case itself (the socket has a parent,
which is tst_QSslSocket object). The 'server' socket was simply leaked.
So there is no guarantee that some of them (or both) later, after the
test failed in one of QVERIFY, for example, does not emit 'encrypted'
upon receiving more data; this will result: in reading/writing from/to
invalid memory location (captured local 'encryptedCount') and/or probably
exiting event loop when it's not expected to do so.

Change-Id: I51de0493d989a5ba36de2cef58d35526c0e26cda
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2018-06-28 03:28:38 +00:00
..
certs QSslSocket: fix connection to a international domain name 2017-03-23 16:11:15 +00:00
.gitignore Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
BLACKLIST qtbase: cleanup BLACKLIST files 2018-02-13 15:20:33 +00:00
qsslsocket.pro Use TESTDATA for QSsl* tests 2018-01-12 11:43:55 +00:00
ssl.tar.gz Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
tst_qsslsocket.cpp tst_QSslSocket::qtbug18498_peek() - fix several problems 2018-06-28 03:28:38 +00:00