On Tue, 01 Sep 2026 15:54:03 +0530, Naveen Kumar Chaudhary wrote:

> Bootstage records may legitimately have a NULL name (for example an id
> turned into an accumulator via bootstage_accum() without a preceding
> bootstage_start(), whose record is zero-initialised). bootstage_relocate()
> called strcpy() on rec->name and bootstage_get_size() called strlen() on
> it directly, both dereferencing NULL and crashing during relocation.
> 
> Skip records with no name in both functions. They are handled identically
> so the size reported by bootstage_get_size(true) still matches the bytes
> written by bootstage_relocate().
> 
> [...]

Applied to u-boot/next, thanks!

[1/1] bootstage: guard against NULL record names during relocation/sizing
      commit: d00b3813405184f30432720733bff9728759cf01
-- 
Tom


Reply via email to