Re: [PATCH v2 08/32] cmd: fdt: Handle 64bit pointers in fdt get addr

2023-03-08 Thread Simon Glass
The command assumed 32bit pointers so far, with 64bit pointer the command would overwrite a piece of stack. Fix it by extending the array size to cater for 64bit pointer, and use snprintf() to avoid writing past the end of the array ever again. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass

[PATCH v2 08/32] cmd: fdt: Handle 64bit pointers in fdt get addr

2023-03-01 Thread Marek Vasut
The command assumed 32bit pointers so far, with 64bit pointer the command would overwrite a piece of stack. Fix it by extending the array size to cater for 64bit pointer, and use snprintf() to avoid writing past the end of the array ever again. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass