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

Illegal memcpy in HTTPS handling

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 5.5.0
    • 5.4.0 Alpha
    • Core: I/O
    • None

    Description

      Saw this in a valgrind log of QtWebKit accessing qt-project.org:

      ==22258== Thread 13 Qt HTTP thread:
      ==22258== Source and destination overlap in memcpy(0x22099f60, 0x22099f60, 16384)
      ==22258==    at 0x4C2CA03: memcpy@@GLIBC_2.14 (mc_replace_strmem.c:882)
      ==22258==    by 0xC4F3A42: QSslSocket::readData(char*, long long) (qiodevice_p.h:103)
      ==22258==    by 0xC75DEE9: QIODevice::read(char*, long long) (qiodevice.cpp:833)
      ==22258==    by 0xC45385F: QHttpNetworkReplyPrivate::readBodyVeryFast(QAbstractSocket*, char*) (qhttpnetworkreply.cpp:621)
      ==22258==    by 0xC460EF8: QHttpProtocolHandler::_q_receiveReply() (qhttpprotocolhandler.cpp:164)
      ==22258==    by 0xC460D1D: QHttpProtocolHandler::_q_readyRead() (qhttpprotocolhandler.cpp:242)
      ==22258==    by 0xC45FE39: QHttpNetworkConnectionChannel::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (qhttpnetworkconnectionchannel.cpp:210)
      ==22258==    by 0xC861BF8: QMetaObject::activate(QObject*, int, int, void**) (qobject.cpp:3713)
      ==22258==    by 0xC508902: QSslSocketBackendPrivate::transmit() (qsslsocket_openssl.cpp:949)
      ==22258==    by 0xC4FAA28: QSslSocket::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (moc_qsslsocket.cpp:157)
      ==22258==    by 0xC861BF8: QMetaObject::activate(QObject*, int, int, void**) (qobject.cpp:3713)
      ==22258==    by 0xC4D689B: QAbstractSocketPrivate::canReadNotification() (qabstractsocket.cpp:731)
      

      Attachments

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

        Activity

          People

            peter-har Peter Hartmann
            allan.jensen Allan Sandfeld Jensen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes