-
Notifications
You must be signed in to change notification settings - Fork 166
Add initial support for cargo-fuzz #315
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
Conversation
Awesome, thank you! I also saw the memory leak issue, and will see if I can figure out what the problem is. Is there a way to run the fuzzer with a specified seed for just a few iterations? As we discussed, we don't want to run the fuzzer seriously as part of the CI, but I'm thinking maybe it would help to do a very short run just to make sure that the infrastructure stays functional. |
Heya ! p.s. see https://llvm.org/docs/LibFuzzer.html#options for the list of commandline options |
It's only used in tt_run_engine().
This more correctly describes its role. Just name_of_file gets updated more frequently as we open and probe files.
…in deleteLayoutEngine()
Codecov Report
@@ Coverage Diff @@
## master #315 +/- ##
==========================================
- Coverage 39.61% 39.61% -0.01%
==========================================
Files 135 135
Lines 59496 59489 -7
==========================================
- Hits 23569 23565 -4
+ Misses 35927 35924 -3
Continue to review full report at Codecov.
|
Took me a long time to get back to this, but I've pushed some work aiming to plug the memory leaks. libFuzzer still reports a lot, but valgrind reports many fewer than it did before. Now I can get something to happen that actually looks like the fuzzer might be finding a problem:
But, if I run Tectonic with that input alone, I don't get a segfault. Hmmm. |
Interesting ! I will take a look as well as soon as I find some time :) |
OK, gonna merge this as-is — the memory leaks can be hunted down later. |
cargo-fuzz
Let me know what you think !