Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.6.0 Beta
-
48f25caac4ba0ae3a0f7c556a434a7714c028354
Description
The following line is causing a crash in QTcpServer::nextPendingConnection if QTcpServer instance doesn't listen (socketEngine is null).
if (!d->socketEngine->isReadNotificationEnabled())
With the nullptr check for d->socketEngine it wouldn't cause this crash anymore.
if (d->socketEngine && !d->socketEngine->isReadNotificationEnabled())
Attachments
For Gerrit Dashboard: QTBUG-51288 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
151242,3 | Check if socketEngine is set before accessing it. | dev | qt/qtbase | Status: MERGED | +2 | 0 |
151569,3 | Rename test to comply with coding conventions. | dev | qt/qtbase | Status: MERGED | -1 | 0 |