Re: [PATCH 05/32] cmd: fdt: Check argc before accessing argv in fdt bootcpu

2023-03-01 Thread Simon Glass
On Mon, 27 Feb 2023 at 12:55, Marek Vasut wrote: > > On case 'fdt bootcpu' is invoked without parameters, argv[2] is not > valid and this command would SEGFAULT in sandbox environment. Add > missing argc test to avoid the crash and rather print usage help > message. > > Signed-off-by: Marek Vasut

[PATCH 05/32] cmd: fdt: Check argc before accessing argv in fdt bootcpu

2023-02-27 Thread Marek Vasut
On case 'fdt bootcpu' is invoked without parameters, argv[2] is not valid and this command would SEGFAULT in sandbox environment. Add missing argc test to avoid the crash and rather print usage help message. Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --