Fix incorrect calculation with gcs path for backup corpus. (#4863)

Fixes https://github.com/google/oss-fuzz/issues/4857
This commit is contained in:
Abhishek Arya 2020-12-17 10:57:32 -08:00 committed by GitHub
parent 773e82c688
commit e06d7f0412
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -664,7 +664,7 @@ def _get_latest_corpus(project_name, fuzz_target, base_corpus_dir):
if not os.path.exists(corpus_dir): if not os.path.exists(corpus_dir):
os.makedirs(corpus_dir) os.makedirs(corpus_dir)
if not fuzz_target.startswith(project_name): if not fuzz_target.startswith(project_name + '_'):
fuzz_target = '%s_%s' % (project_name, fuzz_target) fuzz_target = '%s_%s' % (project_name, fuzz_target)
corpus_backup_url = CORPUS_BACKUP_URL_FORMAT.format(project_name=project_name, corpus_backup_url = CORPUS_BACKUP_URL_FORMAT.format(project_name=project_name,