On Fri, 26 Jun 2026 09:18:02 +0530, Naveen Kumar Chaudhary wrote:

> When the user runs "ini <section>" without explicit address or size
> arguments, do_ini() falls back to env_get("loadaddr") and
> env_get("filesize") and passes the results straight to hextoul().
> env_get() returns NULL for an undefined variable and hextoul() does
> not tolerate a NULL pointer, so on a board without these variables
> set the command dereferences NULL.
> 
> [...]

Applied to u-boot/master, thanks!

[1/1] cmd: ini: avoid NULL deref when loadaddr/filesize env vars are unset
      commit: b81e716b263479e7e2194f9a2df3c04c83307545
-- 
Tom


Reply via email to