0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-08 12:19:02 -05:00
deno/ext
Matt Mastracci 94cbb8a3c2
fix(ext/web): fix potential leak of unread buffers (#23923)
Because the buffers are `MaybeUninit<V8Slice<u8>`, and the owner of the
`BoundedBufferChannel` is not obligated to read each and every bit of
data, we may find that some buffers were not automatically dropped if
unread by the time the `BoundedBufferChannelInner` is dropped.

Possible repro:

```
Deno.serve(() => new Response(new ReadableStream({ start(controller) { controller.enqueue(new Uint8Array(100_000_000))  } })));
```

```bash
while true; do curl localhost:8000 | dd count=1; done
```
2024-05-21 23:50:45 +02:00
..
broadcast_channel 1.43.4 (#23853) 2024-05-17 01:28:38 +02:00
cache 1.43.4 (#23853) 2024-05-17 01:28:38 +02:00
canvas 1.43.4 (#23853) 2024-05-17 01:28:38 +02:00
console 1.43.4 (#23853) 2024-05-17 01:28:38 +02:00
cron 1.43.4 (#23853) 2024-05-17 01:28:38 +02:00
crypto 1.43.4 (#23853) 2024-05-17 01:28:38 +02:00
fetch 1.43.4 (#23853) 2024-05-17 01:28:38 +02:00
ffi 1.43.4 (#23853) 2024-05-17 01:28:38 +02:00
fs 1.43.4 (#23853) 2024-05-17 01:28:38 +02:00
http chore: bump deno_http version (#23866) 2024-05-21 23:50:31 +02:00
io 1.43.4 (#23853) 2024-05-17 01:28:38 +02:00
kv 1.43.4 (#23853) 2024-05-17 01:28:38 +02:00
napi 1.43.4 (#23853) 2024-05-17 01:28:38 +02:00
net 1.43.4 (#23853) 2024-05-17 01:28:38 +02:00
node perf: analyze cjs re-exports in parallel (#23894) 2024-05-21 23:50:44 +02:00
tls 1.43.4 (#23853) 2024-05-17 01:28:38 +02:00
url 1.43.4 (#23853) 2024-05-17 01:28:38 +02:00
web fix(ext/web): fix potential leak of unread buffers (#23923) 2024-05-21 23:50:45 +02:00
webgpu fix(ext/webgpu): Allow depthClearValue to be undefined when depthLoadOp is not "clear" (#23850) 2024-05-21 23:50:44 +02:00
webidl 1.43.4 (#23853) 2024-05-17 01:28:38 +02:00
websocket 1.43.4 (#23853) 2024-05-17 01:28:38 +02:00
webstorage 1.43.4 (#23853) 2024-05-17 01:28:38 +02:00