F-70. The body was read to completion with `bytes()` and only then measured against a 16 MiB ceiling, so a server answering an image request with gigabytes — by fault or by design — was held in memory in full before anything rejected it. Now read in chunks and abandoned the moment the ceiling would be crossed, with a declared Content-Length over the ceiling refused before the body is touched at all. Promoted from a theoretical bound to a real one by the voice work ahead: audio replies are far larger than the stickers this path was built for, so the ceiling becomes reachable in ordinary use rather than only under attack. The fake server for this serves its body with `Connection: close` and no length rather than chunked framing, so the test cannot pass or fail on the fixture's own framing. It counts the blocks it managed to write, which is what distinguishes a download that stopped early from one that was read in full and measured afterwards — confirmed by reverting to `bytes()`, which fails the test. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| capabilities | ||
| icons | ||
| src | ||
| tests | ||
| build.rs | ||
| Cargo.toml | ||
| tauri.conf.json | ||