[whatwg/streams] Resolving promises with byte sequences results in UB (Issue #1178)

Both Streams and Fetch (which builds upon Streams) resolve a promise with a byte sequence:

* https://streams.spec.whatwg.org/#readablestreamdefaultreader-read-all-bytes
* https://fetch.spec.whatwg.org/#concept-body-consume-body

Unfortunately this gives UB in step 2 of https://webidl.spec.whatwg.org/#resolve.

(Discovered through https://bugzilla.mozilla.org/show_bug.cgi?id=1736622.)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/1178

Received on Wednesday, 20 October 2021 08:02:10 UTC