model override-by-name: skip nameless base functions

`base_function["Name"]` crashes with `KeyError` when the model has
a function without an explicit `Name` (e.g. the binary entry stub).
Skip those entries silently; only named functions can be matched
by name anyway.
This commit is contained in:
Alessandro Di Federico
2026-06-03 17:42:48 +02:00
parent 24e9b723bb
commit d66aa40664
@@ -87,6 +87,8 @@ class ModelOverrideByName(Command):
return 1
for base_function in base_model["Functions"]:
if "Name" not in base_function:
continue
if base_function["Name"] == function_name:
function_to_override["Entry"] = base_function["Entry"]
function_to_override["Name"] = base_function["Name"]