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

received UDP datagram is truncated at first 0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.5.1
    • Fix Version/s: 5.6.0
    • Component/s: Network: Sockets
    • Labels:
      None
    • Environment:
      windows 10, Visual Studio 2013, QT 5.5.1
    • Commits:
      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

            Assignee:
            jefernan Jesus Fernandez
            Reporter:
            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