[PATCH v4 0/2] Prevent use of unitialised variable vhdr
Andrew Goodbody
andrew.goodbody at linaro.org
Thu Jun 26 18:38:53 CEST 2025
Ensure that vhdr is initialised so that its value is never
accessed when not initialised.
Signed-off-by: Andrew Goodbody <andrew.goodbody at 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-9f302e96807d@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-0d295dc1f1e2@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-ce1645ac9879@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.goodbody at linaro.org>
More information about the U-Boot
mailing list