All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] Prevent use of unitialised variable vhdr
@ 2025-06-26 16:38 Andrew Goodbody
  2025-06-26 16:38 ` [PATCH v4 1/2] cmd: abootimg: Prevent use of unintialised variable Andrew Goodbody
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Andrew Goodbody @ 2025-06-26 16:38 UTC (permalink / raw)
  To: Tom Rini, Mattijs Korpershoek; +Cc: u-boot, Andrew Goodbody

Ensure that vhdr is initialised so that its value is never
accessed when not initialised.

Signed-off-by: Andrew Goodbody <andrew.goodbody@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@linaro.org>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-07-02 10:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-26 16:38 [PATCH v4 0/2] Prevent use of unitialised variable vhdr Andrew Goodbody
2025-06-26 16:38 ` [PATCH v4 1/2] cmd: abootimg: Prevent use of unintialised variable Andrew Goodbody
2025-06-27  6:51   ` Mattijs Korpershoek
2025-06-26 16:38 ` [PATCH v4 2/2] boot: android: " Andrew Goodbody
2025-06-27  6:52   ` Mattijs Korpershoek
2025-07-02 10:10 ` [PATCH v4 0/2] Prevent use of unitialised variable vhdr Mattijs Korpershoek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.