You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a result of increased fuzzing in our organization, we now have thousands of fuzz corpus files (admittedly a good problem to have :) Currently, we individually store all of these corpus files and pass them to cc_fuzz_test's corpus = glob(["my-corpus-directory/*"]).
Given the proliferation of corpus files, we are interested in storing fuzz corpora in compressed archives (say, as a single corpus.tar.gz for every cc_fuzz_test). Are there existing Bazel rules that can help us feed a compressed archive to cc_fuzz_test's corpus parameter? Alternatively, can we extend rules_fuzzing to support, say, corpus_archives = ["corpus.tar.gz"]?
The text was updated successfully, but these errors were encountered:
I'm not 100% sure, but I believe you should be able to define a custom rule that extracts a .tar.gz archive and produces a directory output (so all the extracted files would be written there). Then you can instantiate the rule and use it as a corpus attribute in the fuzz target.
But I can also see merit in supporting corpus archives natively, e.g., through a corpus_archive attribute, so this is a reasonable feature request (PRs welcome, too! 😁 ).
As a result of increased fuzzing in our organization, we now have thousands of fuzz corpus files (admittedly a good problem to have :) Currently, we individually store all of these corpus files and pass them to
cc_fuzz_test
'scorpus = glob(["my-corpus-directory/*"])
.Given the proliferation of corpus files, we are interested in storing fuzz corpora in compressed archives (say, as a single
corpus.tar.gz
for everycc_fuzz_test
). Are there existing Bazel rules that can help us feed a compressed archive tocc_fuzz_test
'scorpus
parameter? Alternatively, can we extendrules_fuzzing
to support, say,corpus_archives = ["corpus.tar.gz"]
?The text was updated successfully, but these errors were encountered: