Support bridge-owned TALK layers and recover free P4a candidate
This commit is contained in:
@@ -73,8 +73,10 @@ for name, main, real in suites:
|
||||
index_path=args.index_manifest.resolve(strict=True)
|
||||
raw=index_path.read_bytes();digest=hashlib.sha256(raw).hexdigest()
|
||||
data=json.loads(raw);runtimes={};hashes={}
|
||||
for row in data['conversationPackages']:
|
||||
reference=row['runtimeManifest'];path=reference['path']
|
||||
references=[row['runtimeManifest'] for row in data['conversationPackages']]
|
||||
references += [edge['mouthRuntimeManifest'] for edge in data['edges'] if 'mouthRuntimeManifest' in edge]
|
||||
for reference in references:
|
||||
path=reference['path']
|
||||
runtime_path=(index_path.parent/path).resolve(strict=True)
|
||||
if not runtime_path.is_relative_to(index_path.parent): raise ValueError('Runtime path escape')
|
||||
runtime_raw=runtime_path.read_bytes();runtime_hash=hashlib.sha256(runtime_raw).hexdigest()
|
||||
|
||||
Reference in New Issue
Block a user