aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-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())