From 3feed372b65895b19121d79ced1458ce29118782 Mon Sep 17 00:00:00 2001 From: anupamme Date: Sat, 10 Oct 2026 03:20:53 +0000 Subject: [PATCH] fix: multi_agent.cwe-328 security vulnerability Automated security fix generated by OrbisAI Security --- bench/speech.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/speech.py b/bench/speech.py index 527d821..40c04aa 100644 --- a/bench/speech.py +++ b/bench/speech.py @@ -137,7 +137,7 @@ def cached(path, fn, jobs, pool, keep=True): names = sorted(f[:-4] for f in os.listdir(f'{d}/{SETS[set_][2]}') if f.endswith('.wav'))[k::n] refdir = dirs(ref)[f'{set_}-clean/{ref}'] if ref else None # scores of one reference: the clean one, or the clean one through --ref's stages - tag = 'scores' + (f'.ref-{hashlib.md5(refdir.encode()).hexdigest()[:8]}' if ref else '') + tag = 'scores' + (f'.ref-{hashlib.sha256(refdir.encode()).hexdigest()[:8]}' if ref else '') os.makedirs(os.path.join(DATA, 'recipes', set_), exist_ok=True) keep = n == 1 # a shard (a trial run) keeps no scores base = cached(os.path.join(DATA, 'recipes', set_, f'noisy.{tag}.json'), vb, [(set_, None, refdir, x, True, None) for x in names], pool, keep)