Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
5.15.0 RC2
-
None
-
Qt Creator 4.14.2 on macOS.
Description
I have a call to QCoreApplication::processEvents() in a thread body. The debugger halted because in this function: qcoreapplication.cpp on line 1281, it reads:
void QCoreApplication::processEvents(QEventLoop::ProcessEventsFlags flags) { QThreadData *data = QThreadData::current(); if (!data->hasEventDispatcher()) return; data->eventDispatcher.loadRelaxed()->processEvents(flags); }
There is no check on the pointer data which is nullptr and it is then dereferenced to try and call hasEventDispatcher, Obviously the function should check data is valid before use.