Skip to content

Commit 4138902

Browse files
committed
limit the amount of work done to avoid the creation of huge file when fuzzing the section API
1 parent b6c04c8 commit 4138902

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gix-config/fuzz/fuzz_targets/fuzz_file.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ fn fuzz(input: &[u8]) -> Result<()> {
9191

9292
let mut buf = Vec::new();
9393
let mut sections = Vec::new();
94-
for section in file.sections() {
94+
// Don't perform too much work as this can blow up the size of the file.
95+
for section in file.sections().take(10) {
9596
fuzz_immutable_section(section, &mut buf);
9697

9798
let header = section.header();

0 commit comments

Comments
 (0)