diff options
author | Abhishek Arya <inferno@chromium.org> | 2020-12-17 10:57:32 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-17 10:57:32 -0800 |
commit | e06d7f0412cfe0c8a15822a7346c413a595f2fd9 (patch) | |
tree | 44acd84fd5d8b18a1e0de19cd4b277bcbbfa2e89 /infra/helper.py | |
parent | 773e82c6888447dd9a3dcdde06e9faf48fd14de5 (diff) | |
download | oss-fuzz-e06d7f0412cfe0c8a15822a7346c413a595f2fd9.tar.gz |
Fix incorrect calculation with gcs path for backup corpus. (#4863)
Fixes https://github.com/google/oss-fuzz/issues/4857
Diffstat (limited to 'infra/helper.py')
-rwxr-xr-x | infra/helper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/infra/helper.py b/infra/helper.py index ff4eb3166..4e7072542 100755 --- a/infra/helper.py +++ b/infra/helper.py @@ -664,7 +664,7 @@ def _get_latest_corpus(project_name, fuzz_target, base_corpus_dir): if not os.path.exists(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) corpus_backup_url = CORPUS_BACKUP_URL_FORMAT.format(project_name=project_name, |