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

QUdpSocket sends corrupted packets when fed certain binary data.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.3.2
    • Network: Sockets
    • None
    • Qt 5.3.2 Qt Creator with mingw. Windows 7 64 bit

    Description

      When sending a datagram read from a .ts video file created with VLC, QUdpSocket sends out corrupted packets. Wireshark shows the source and destination fields of the UDP packet are empty. Manually created MPEG-TS null packets passed through the same datagram building code results in UDP packets that are fully formed. Both fread and QFile methods result in the same problem. Unsighed char arrays are used because of my need for compatibility with the larger set of programs that I need to use this with, but I don't think it has any effect. This same .ts file streams out correctly when using a winsock based implementation. (not included in this example) I also observed this problem when using the .append method instead of memmove to build each datagram.

      Attachments

        1. bad_packets_fread.pcapng
          60 kB
        2. bad_packets_qfile.pcapng
          60 kB
        3. good_packets_nullpkt.pcapng
          60 kB
        4. stream_test.zip
          110 kB
        5. vlcOutputFile.ts
          6.11 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            peter-har Peter Hartmann
            zcybercomputing Zach Swena
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes