mirror of https://github.com/google/oss-fuzz.git
Fix incorrect calculation with gcs path for backup corpus. (#4863)
Fixes https://github.com/google/oss-fuzz/issues/4857
This commit is contained in:
parent
773e82c688
commit
e06d7f0412
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue