Cap session bundles at 1 GiB: 4 GiB is all of wasm32's address space

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-11 20:16:15 -04:00
co-authored by Claude Opus 5.5
parent 6964c50d00
commit 69570e5b54
+1 -1
View File
@@ -578,7 +578,7 @@ pub const BUNDLE_EXTENSION: &str = "scraftz";
/// Most entries and bytes a bundle may unpack to (bundles are hostile input).
const MAX_BUNDLE_ENTRIES: usize = 10_000;
const MAX_BUNDLE_BYTES: u64 = 4 << 30;
const MAX_BUNDLE_BYTES: u64 = 1 << 30;
/// Hands a finished file (name, bytes) to the person on a host without a filesystem: the web app
/// installs one that starts a download. Native builds write files and never install it.