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

WASM: QNetworkReplyWasmImpl::readData not advancing through buffer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.13.0 Alpha 1
    • Network, QPA
    • None
    • WebAssembly

    Description

      memcpy(data, d->downloadBuffer.constData(), howMuch); s.b. memcpy(data, d->downloadBuffer.constData() + d->downloadBufferReadPosition, howMuch);

       

      https://github.com/msorvig/qt-webassembly-examples/tree/master/core_network

      If the .wasm that this example tries to transfer is more than 2^14 bytes (chunk size), the Sha will be wrong.  If you change the line of code mentioned above, it will begin to work correctly.  The author of readData is not advancing the pointer into the source data.

      Attachments

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

        Activity

          People

            lpotter Lorn Potter
            jogomu John Muehlhausen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes