aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-nres/src/lib.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-06-30 01:55:23 +0300
committerValentin Popov <valentin@popov.link>2026-06-30 01:55:23 +0300
commit0fd96faf541a8bd05465b53f66d99a73d1b43ec7 (patch)
tree942dd8f42c5aab5cc29852ebc7e3e6597cce76ff /crates/fparkan-nres/src/lib.rs
parentc7a9c43b5bfdda7c3869ac461f03d043e5b1e3b7 (diff)
downloadfparkan-0fd96faf541a8bd05465b53f66d99a73d1b43ec7.tar.xz
fparkan-0fd96faf541a8bd05465b53f66d99a73d1b43ec7.zip
fix(nres): align licensed closure with corpus limits
Diffstat (limited to 'crates/fparkan-nres/src/lib.rs')
-rw-r--r--crates/fparkan-nres/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/fparkan-nres/src/lib.rs b/crates/fparkan-nres/src/lib.rs
index 2511d8c..520d498 100644
--- a/crates/fparkan-nres/src/lib.rs
+++ b/crates/fparkan-nres/src/lib.rs
@@ -71,9 +71,9 @@ impl Default for DecodeLimits {
Self {
max_input_bytes: 256 * 1024 * 1024,
max_entries: 1_000_000,
- max_decoded_entry_bytes: 64 * 1024 * 1024,
+ max_decoded_entry_bytes: 256 * 1024 * 1024,
max_total_decoded_bytes: 512 * 1024 * 1024,
- max_preserved_bytes: 64 * 1024 * 1024,
+ max_preserved_bytes: 256 * 1024 * 1024,
}
}
}
@@ -2172,7 +2172,7 @@ mod tests {
let mut has_nonzero_preserved_region = false;
for path in &files {
let bytes = fs::read(path).map_err(|err| format!("{}: {err}", path.display()))?;
- let doc = decode(arc(bytes.clone()), ReadProfile::Strict)
+ let doc = decode(arc(bytes.clone()), ReadProfile::Compatible)
.map_err(|err| format!("{}: {err}", path.display()))?;
total_entries = total_entries
.checked_add(doc.entry_count())