From e2a32f6cc0fa7cfa3f46c93e1bbcf7689b282c42 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Sun, 7 Dec 2025 00:42:37 +0100 Subject: [PATCH] Reject invalid platform format in manifest selection --- supervisor/docker/manifest.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/supervisor/docker/manifest.py b/supervisor/docker/manifest.py index 104c48f83..408b2f2f1 100644 --- a/supervisor/docker/manifest.py +++ b/supervisor/docker/manifest.py @@ -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: