Skip to content

Commit a2288ad

Browse files
committed
binutils fuzz_strings timeout
fuzz_strings needs some globals to be initialised. Without this nothing is read from the file and blank lines are printed until the fuzzer times out.
1 parent fc428ad commit a2288ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

projects/binutils/fuzz_strings.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
3434

3535
program_name = "fuzz_strings";
3636

37+
string_min = 4;
38+
encoding = 's';
39+
encoding_bytes = 1;
40+
datasection_only = true;
41+
3742
// Main fuzz entrypoint in strings.c
3843
strings_object_file(filename);
3944

0 commit comments

Comments
 (0)