zstd-rs icon indicating copy to clipboard operation
zstd-rs copied to clipboard

Any difference between decodecorpus_files and fuzz_decodecorpus?

Open Shnatsel opened this issue 5 years ago • 1 comments

I'm looking to fuzz the library more and use the fuzzer to compare the output to the reference C implementation. I've been wondering, what's the difference between the two directories with inputs - decodecorpus_files and fuzz_decodecorpus?

Also, you can make cargo-fuzz automatically pick up the fuzzing corpus without requiring to explicitly specify a path if you move it to fuzz/corpus/fuzz_target_1, similar to artifacts folder.

Shnatsel avatar Apr 17 '20 00:04 Shnatsel

The two different dirs are more or less out of lazyness. One is used for testing (so I have a few files and the originals together in one dir) and one is input for fuzzing, and only contains .zst files.

Cool, I did not know I could setup the corpus like that!

If you find any crashes / timeouts please let me know, I do care about this crates correctness. Always glad to have a second pair of eyes look at my stuff :)

KillingSpark avatar Apr 17 '20 19:04 KillingSpark