qt6-bb10/tests/auto/network
Alex Trotsenko a4d26cf522 QWindowsPipeWriter: ensure validity of the write buffer
QWindowsPipeWriter uses asynchronous API to perform writing. Once a cycle
has been started, the write buffer must remain valid until the write
operation is completed.

To avoid data corruption and possibly undefined behavior, this patch
makes QWindowsPipeWriter::write() take a QByteArray, which it keeps alive
for the duration of the write cycle.

Autotest-by: Thomas Hartmann
Task-number: QTBUG-52401
Change-Id: Ia35faee735c4e684267daa1f6bd689512b670cd2
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2016-04-30 13:13:26 +00:00
..
access tst_QNetworkReply: Commentary fixes on test server workarounds. 2016-04-12 13:51:58 +00:00
bearer Fix compilation for WinRT 2015-12-14 08:43:15 +00:00
kernel Autotest: confirm that QHostAddress obeys RFC 5952 recommendations 2016-04-09 05:16:40 +00:00
socket QWindowsPipeWriter: ensure validity of the write buffer 2016-04-30 13:13:26 +00:00
ssl Fix compilation for WinRT 2015-12-14 08:43:15 +00:00
network.pro