Ensure that vhdr is initialised so that its value is never accessed when not initialised.
Signed-off-by: Andrew Goodbody <andrew.goodb...@linaro.org> --- Changes in v4: - Fix another instance of the same bug - Link to v3: https://lore.kernel.org/r/20250625-abootimg_fix-v3-1-9f302e968...@linaro.org Changes in v3: - Just initialise the variable rather than exit early - Link to v2: https://lore.kernel.org/r/20250625-abootimg_fix-v2-1-0d295dc1f...@linaro.org Changes in v2: - Add unmap_sysmem(hdr) in the new exit path - Link to v1: https://lore.kernel.org/r/20250625-abootimg_fix-v1-1-ce1645ac9...@linaro.org --- Andrew Goodbody (2): cmd: abootimg: Prevent use of unintialised variable boot: android: Prevent use of unintialised variable boot/image-android.c | 2 +- cmd/abootimg.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- base-commit: 903eb123236ccbd8ef05d43507a2a910b785bd56 change-id: 20250625-abootimg_fix-51600dc8356a Best regards, -- Andrew Goodbody <andrew.goodb...@linaro.org>