ladybird/Tests/LibWeb/Text/input/Streams
sideshowbarker 8e74650416 LibWeb: Fix crash when reading a detached or out-of-bounds stream chunk
Problem: Crash when reading a ReadableStream whose chunk is a Uint8Array
backed by a detached ArrayBuffer.

Cause: The ReadLoopReadRequest::on_chunk code skipped existing guards
when extracting the chunk bytes — leading to bytes() getting called on
the detached buffer, which tripped an assert.

Fix: Read the chunk through Uint8Array::data() — which guards for the
case where the view is detached (or out-of-bounds). That aligns things
with what the sibling IncrementalReadLoopReadRequest was already doing.

Fixes https://github.com/LadybirdBrowser/ladybird/issues/9965
2026-06-08 13:45:00 +02:00
..
ByteLengthQueuingStrategy-enqueue-desired-size.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
CountQueuingStrategy-enqueue-desired-size.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
init-from-cloned-fetch-response.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
init-from-fetch.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
QueuingStrategy-high-water-mark.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
QueuingStrategy-same-instance.html Everywhere: Remove ShadowRealm support 2026-04-05 13:57:58 +02:00
ReadableByteStream-byob-tee.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
ReadableByteStream-default-tee.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
ReadableByteStream-enqueue-respond.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
ReadableStream-autoAllocateChunkSize-constructor.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
ReadableStream-can-cancel.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
ReadableStream-default-tee.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
ReadableStream-from-asyncIterator.html Tests: Add explicit UTF-8 charset declarations to existing tests 2026-05-23 11:57:33 +02:00
ReadableStream-pipeThrough-cannot-pipe-locked-stream.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
ReadableStream-pipeThrough-cannot-pipe-to-locked-stream.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
ReadableStream-pipeThrough.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
ReadableStream-pipeTo-cannot-pipe-locked-stream.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
ReadableStream-pipeTo-cannot-pipe-to-locked-stream.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
ReadableStream-pipeTo-Writer-close-callback-called.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
ReadableStream-pipeTo.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
ReadableStream-read-detached-chunk.html LibWeb: Fix crash when reading a detached or out-of-bounds stream chunk 2026-06-08 13:45:00 +02:00
ReadableStream-read-out-of-bounds-chunk.html LibWeb: Fix crash when reading a detached or out-of-bounds stream chunk 2026-06-08 13:45:00 +02:00
ReadableStream-read-subview-chunk.html LibWeb: Fix crash when reading a detached or out-of-bounds stream chunk 2026-06-08 13:45:00 +02:00
ReadableStreamBYOBReader-read-min.html Tests: Add explicit UTF-8 charset declarations to existing tests 2026-05-23 11:57:33 +02:00
ReadableStreamBYOBReader-read-non-transferable-buffer.html LibWeb: Make TransferArrayBuffer zero-copy 2026-04-25 10:53:51 +02:00
ReadableStreamBYOBReader-read.html Tests: Add explicit UTF-8 charset declarations to existing tests 2026-05-23 11:57:33 +02:00
ReadableStreamBYOBReader-respondWithNewView.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
TransformStream-cancelled-by-readable-side.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
TransformStream-cancelled-by-writable-side.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
TransformStream-flush-callback.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
TransformStream-identity-transform.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
TransformStream-readable-cancel.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
TransformStream-readableType-writableType-has-value.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
TransformStream-start-callback.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
TransformStream-transform-callback.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
WritableStream-write.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00