From e06d7f0412cfe0c8a15822a7346c413a595f2fd9 Mon Sep 17 00:00:00 2001 From: Abhishek Arya Date: Thu, 17 Dec 2020 10:57:32 -0800 Subject: [PATCH] Fix incorrect calculation with gcs path for backup corpus. (#4863) Fixes https://github.com/google/oss-fuzz/issues/4857 --- infra/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,