Skip to content

Commit be37160

Browse files
committed
fix(test): increase file count limit for tar bomb test
Now that tar -c correctly uses -C directory, the creation step needs more headroom since it actually reads source files via VFS.
1 parent 05ff67b commit be37160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bashkit/tests/threat_model_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2404,7 +2404,7 @@ mod archive_security {
24042404
/// TM-DOS-008: Tar with many files — FS file count limit blocks extraction
24052405
#[tokio::test]
24062406
async fn threat_tar_bomb_many_files_blocked() {
2407-
let limits = FsLimits::new().max_file_count(20);
2407+
let limits = FsLimits::new().max_file_count(30);
24082408
let fs = Arc::new(InMemoryFs::with_limits(limits));
24092409
let mut bash = Bash::builder().fs(fs).build();
24102410

0 commit comments

Comments
 (0)