--
You received this message because you are subscribed to the Google Groups "libfuzzer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libfuzzer+unsubscribe@googlegroups.com.
To post to this group, send email to libf...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/libfuzzer/CAK0DrSxEiT2iEjOC1H8%2BUG6MzaWNVFFb4FQReowhnygg81YC%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
The suggested flag would also allow automated targeted fuzzing for regression testing.It would be more practical to have the functionality in libfuzzer. Especially when we want to automate the process for multiple stack traces and complex target program.
If we forget the fuzzing for specific code paths, would it be possible to add the option of detecting files that trigger specific code lines when doing plain run for a given corpus? That would "only" require reset of the coverage data between execution of each test case.
Two week ago __sanitizer_cov_reset
was added to sanitizer coverage interface, but so far I had no luck in using it in libFuzzer DoPlainRun. Do you think it could be used in this context? If I recall right, SanitizerCoverage used to have coverage data reset for custom in-memory fuzzer implementations, but it is not anymore in the documentation.
Do you mean documentation on the level of what shows up in -help=1, or more in-depth documentation on what use cases the flag would have?
Hi,
print_on_src_pos 0 When running individual tests without fuzzing, print filenames with PC originating from the given source location. Example: -print_on_src_pos=foo.cc:123,bar.cc:99
On Wed, Aug 23, 2017 at 12:03 AM, Atte Kettunen <atte...@gmail.com> wrote:Hi,print_on_src_pos 0 When running individual tests without fuzzing, print filenames with PC originating from the given source location. Example: -print_on_src_pos=foo.cc:123,bar.cc:99Will this be a significant improvement over just printing all new PCs (and then using grep)?(-print_pcs=1; although currently it works only during fuzzing)
On Thu, Aug 24, 2017 at 11:13 PM, Konstantin Serebryany <konstantin.s.serebryany@gmail.com> wrote:On Wed, Aug 23, 2017 at 12:03 AM, Atte Kettunen <atte...@gmail.com> wrote:Hi,print_on_src_pos 0 When running individual tests without fuzzing, print filenames with PC originating from the given source location. Example: -print_on_src_pos=foo.cc:123,bar.cc:99Will this be a significant improvement over just printing all new PCs (and then using grep)?(-print_pcs=1; although currently it works only during fuzzing)For me, -print_pcs=1 doesn't work
on clang version 6.0.0-svn310235-1~exp1 (trunk) and Fuzzer@311405, so can't verify if anything has changed since I last time used it.
IIRC -print_pcs=1 doesn't print the file that triggers that specific PC, only that a new input was found that triggers PC <X>, and it only prints when we hit that PC for the first time.
This feature would allow running through all the samples and pick out all the files that trigger specified code line(s). Printing just new PCs, as implemented in print_pcs, will only give us the first file that triggers the specified line(s).