Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Unified Diff: testing/libfuzzer/archive_corpus.py

Issue 1885493002: [libfuzzer] Add custom max_len parameter for boringssl fuzzers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove depfile for dry run to test a possible fix. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | testing/libfuzzer/fuzzer_test.gni » ('j') | third_party/boringssl/BUILD.gn » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/libfuzzer/archive_corpus.py
diff --git a/testing/libfuzzer/archive_corpus.py b/testing/libfuzzer/archive_corpus.py
index fa90a5a10bbcce07793e8a1dcebedfadc8838c91..7e39bb54e449812ecf275775b07a9454f3e94923 100755
--- a/testing/libfuzzer/archive_corpus.py
+++ b/testing/libfuzzer/archive_corpus.py
@@ -18,23 +18,17 @@ import zipfile
def main():
parser = argparse.ArgumentParser(description="Generate fuzzer config.")
- parser.add_argument('--depfile', required=True)
parser.add_argument('--corpus', required=True)
parser.add_argument('--output', required=True)
parser.add_argument('--fuzzer', required=True)
args = parser.parse_args()
corpus_files = []
- # Generate .d file with dependency from corpus archive to individual files.
- with open(args.depfile, 'w') as depfile:
- print(os.path.basename(args.output), ":", end="", file=depfile)
- for (dirpath, _, filenames) in os.walk(args.corpus):
- for filename in filenames:
- full_filename = os.path.join(dirpath, filename)
- print(" ", full_filename, end="", file=depfile)
- corpus_files.append(full_filename)
- # chrome bots complain about this one:
- # print(" ", args.fuzzer, end="", file=depfile)
+
+ for (dirpath, _, filenames) in os.walk(args.corpus):
+ for filename in filenames:
+ full_filename = os.path.join(dirpath, filename)
+ corpus_files.append(full_filename)
with zipfile.ZipFile(args.output, 'w') as z:
for corpus_file in corpus_files:
@@ -43,4 +37,3 @@ def main():
if __name__ == '__main__':
main()
-
« no previous file with comments | « no previous file | testing/libfuzzer/fuzzer_test.gni » ('j') | third_party/boringssl/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698