Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-51288

Add nullptr check in QTcpServer::nextPendingConnection

    XMLWordPrintable

Details

    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            fdv Fredrik de Vibe
            kileppal Kimmo Leppälä
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes