Files
u-boot-krane/cmd
Naveen Kumar ChaudharyandTom Rini bd93d8ea10 cmd: upl: fix off-by-one argc check in do_upl_read
do_upl_read() guards against missing arguments with "argc < 1", but
argc always counts argv[0] (the command name) so that condition is
never true. The function then unconditionally dereferences argv[1],
which is out of bounds when the user runs "upl read" with no address
argument and feeds garbage into hextoul()/map_sysmem().

Use "argc < 2" so the address argument is actually required.

Fixes: 264f4b0b34 ("upl: Add a command")
Signed-off-by: Naveen Kumar Chaudhary <naveen.osdev@gmail.com>
2026-07-10 15:52:36 -06:00
..
2026-06-25 14:13:34 -06:00
2026-04-22 14:23:49 -06:00
2026-04-27 11:26:40 -06:00
2026-05-12 15:52:01 +02:00
2026-04-08 11:07:00 -06:00