Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for dictionary files #6

Closed
wants to merge 1 commit into from

Conversation

@jvoisin
Copy link
Contributor

jvoisin commented Dec 16, 2019

This commits adds the support for dictionaries
(https://llvm.org/docs/LibFuzzer.html#dictionaries), to help fuzzers increase
their coverage faster
.

It seems that there is a bug in the _copy function, because the word is
correctly inserted, but it seems that the padding after it is wrong,
and I couldn't understand why. Although to be honest,
I didn't spent much time on it, since I'd like to have feedback
on this PR before investing more debug time.

The implementation is pretty crude, it silently ignore
invalid lines in the dictionary file, and is likely using
words in the corpus a bit too often.

This commits adds the support for dictionaries
(https://llvm.org/docs/LibFuzzer.html#dictionaries), to help fuzzers increase
their coverage faster.

It seems that there is a bug in the _copy function, because the word is
correctly inserted, but it seems that the padding after it is wrong,
and I couldn't understand why. Although to be honest,
I didn't spent much time on it, since I'd like to have feedback
on this PR before investing more debug time.

The implementation is pretty crude, it silently ignore
invalid lines in the dictionary file, and is likely using
words in the corpus a bit too often.
@yevgenypats
Copy link
Contributor

yevgenypats commented Dec 18, 2019

I need to invest a bit more thought here as I didn't use this feature a lot at libfuzzer. If this is needed urgently I can merge it now and review later if you like as this being guarded by flag (maybe added experimental string in the help as well)

@jvoisin
Copy link
Contributor Author

jvoisin commented Dec 18, 2019

It's not super-duper urgent :)

I would prefer to have the _copy function fixed, and then get this merged.

@jvoisin jvoisin closed this Feb 12, 2020
@jvoisin jvoisin deleted the jvoisin:add_dict_support branch Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.