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

received UDP datagram is truncated at first 0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.0
    • 5.5.1
    • Network: Sockets
    • None
    • windows 10, Visual Studio 2013, QT 5.5.1
    • 1f9a06c2949cd206235e75d20d0183fee927cb3e

    Description

      In the winphone_arm and winphone_x86 release, the received UDP packet is truncated at first 0. This is due to using of "strcpy" instead of "memcpy" in the source file
      "\qt-everywhere-opensource-src-5.5.1\qtbase\src\network\socket\qnativesocketengine_winrt.cpp"

      in function

      qint64 QNativeSocketEngine::readDatagram(char *data, qint64 maxlen, QHostAddress *addr, quint16 *port)

      best regards
      Massimiliano

      Attachments

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

        Activity

          People

            jefernan Jesus Fernandez
            massimilianoconte70 massimiliano
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes