qt5base-lts/tests/auto/corelib
Joerg Bornemann 6f75c189e1 Fix crash in QProcess::waitForFinished on Windows
Suppose the user connects QProcess::readyReadStandardOutput with a
slot that calls QCoreApplication::processEvents.
Assume the event loop did not handle events between QProcess::start
and QProcess::waitForFinished. The process writes to stdout and exits.
QProcessPrivate::waitForFinished calls drainOutputPipes which calls
QWindowsPipeWriter::waitForReadyRead. This in turn will trigger
_q_processDied via the readyRead signal and processEvents.
_q_processDied will delete the pid object and set pid to null.
After drainOutputPipes returns, _q_processDied is called again but it
must not be called if pid is already destroyed.

Prevent calling _q_processDied if pid is null.

Task-number: QTBUG-48697
Change-Id: Iee047938ee1529057a1a43d71f4e882750903c7e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2016-02-29 17:52:58 +00:00
..
animation Extend tst_QPauseAnimation::pauseAndPropertyAnimations blacklist 2015-06-20 15:25:58 +00:00
codecs Fix utf8->utf16 BOM/ZWNBSP decoding. 2015-12-21 09:56:49 +00:00
global Fix compilation for WinRT 2015-12-14 08:43:15 +00:00
io Fix crash in QProcess::waitForFinished on Windows 2016-02-29 17:52:58 +00:00
itemmodels tst_QItemModel: Use a QTemporaryDir for test data of QDirModel. 2015-11-27 22:50:26 +00:00
json Update testdata 2016-02-17 04:50:50 +00:00
kernel Update testdata 2016-02-17 04:50:50 +00:00
mimetypes QMimeDatabase: follow symlinks when checking for FIFO etc. 2015-12-29 11:06:13 +00:00
plugin winrt: cleanup testcases 2016-01-29 13:35:48 +00:00
statemachine Merge remote-tracking branch 'origin/5.5' into 5.6 2016-01-19 10:03:01 +01:00
thread Fix compilation for WinRT 2015-12-14 08:43:15 +00:00
tools Remove a mis-placed QSKIP(). 2016-02-26 09:22:35 +00:00
xml Update copyright headers 2015-02-11 06:49:51 +00:00
corelib.pro