From 1611ed49c6b2f2ae2a8e1df277739f0ecaa4c08a Mon Sep 17 00:00:00 2001 From: Praveen K Paladugu Date: Tue, 18 Aug 2026 21:38:52 +0000 Subject: [PATCH] Skip empty embedded TA binaries during registration Avoid panicking during initialization when an embedded TA binary is an empty placeholder. Fixes: e33f6ffd: share TA binaries through a global UUID map Signed-off-by: Praveen K Paladugu --- litebox_runner_lvbs/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litebox_runner_lvbs/src/lib.rs b/litebox_runner_lvbs/src/lib.rs index 9aa1644be..7a0635551 100644 --- a/litebox_runner_lvbs/src/lib.rs +++ b/litebox_runner_lvbs/src/lib.rs @@ -1355,7 +1355,9 @@ fn register_embedded_ta(shim: &litebox_shim_optee::OpteeShim, ta_binary: &'stati /// Register all TA binaries embedded in the runner image. fn register_embedded_tas(shim: &litebox_shim_optee::OpteeShim) { for ta_binary in TA_BINARIES { - assert!(register_embedded_ta(shim, ta_binary)); + if !ta_binary.is_empty() { + assert!(register_embedded_ta(shim, ta_binary)); + } } }