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

QUdpSocket: read access violation.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.11.0
    • Fix Version/s: 5.12.0 Alpha
    • Component/s: Network: Sockets
    • Labels:
      None
    • Platform/s:
      Windows
    • Commits:
      b78342f553ee13944c19bfdf77cdf68b0de87e50

      Description

      Offending code in QAbstractSocketPrivate::bind

      • The socket engine gets set-up
      • emits stateChanged(...) signal
      • user code calls close() on the socket, enters QAbstractSocket::disconnectFromHost()
      • following call to void QAbstractSocketPrivate::resetSocketLayer() deletes and NULL's the socketEngine
      • bind function moves on in the code and uses socketEngine
      emit q->stateChanged(state);
      if (socketType == QAbstractSocket::UdpSocket)
              socketEngine->setReadNotificationEnabled(true);
      

        Attachments

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

          Activity

            People

            • Assignee:
              tpochep Timur Pocheptsov
              Reporter:
              heimrich Karsten Heimrich
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes