diff options
| author | Mikolaj Boc <mikolaj.boc@qt.io> | 2023-04-21 13:42:57 +0200 |
|---|---|---|
| committer | Mikolaj Boc <mikolaj.boc@qt.io> | 2023-04-25 19:24:33 +0200 |
| commit | d09855ae7b347aaaebb4e9dc5a78ecef6d8fd62e (patch) | |
| tree | f8bcf02253436f876bb0859879efb1e808e7927a /src/testlib/doc/snippets/code/code.pro | |
| parent | 5ebb9a8bf357b435a9d9cf56ae018f552c96d03c (diff) | |
Copy memory to buffer when saving files on wasm with threading on
wasm heap uses a shared array buffer, which cannot be fed to
FileSystemWritableFileStream.write due to security limitations.
Heap memory has to be copied to a temporary buffer for the operation to
succeed.
This is only done if __EMSCRIPTEN_SHARED_MEMORY__ is on to optimize the
non-threading path.
Fixes: QTBUG-112881
Pick-to: 6.5
Change-Id: I0d117a8703caf4c17abc67b30df5248a53406d5f
Reviewed-by: Aleksandr Reviakin <aleksandr.reviakin@qt.io>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/testlib/doc/snippets/code/code.pro')
0 files changed, 0 insertions, 0 deletions
