1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-19 18:08:40 +00:00

Reject invalid platform format in manifest selection

This commit is contained in:
Stefan Agner
2025-12-07 00:42:37 +01:00
parent 470f82ea45
commit e2a32f6cc0

View File

@@ -223,8 +223,11 @@ class RegistryManifestFetcher:
# Platform format is "linux/amd64", "linux/arm64", etc.
parts = platform.split("/")
if len(parts) >= 2:
target_os, target_arch = parts[0], parts[1]
if len(parts) < 2:
_LOGGER.warning("Invalid platform format: %s", platform)
return None
target_os, target_arch = parts[0], parts[1]
platform_manifest = None
for m in manifests: