commit | 18bddca52a74d68929788325b30261460c12023a | [log] [tgz] |
---|---|---|
author | Marek Vasut <marek.vasut+renesas@mailbox.org> | Thu Mar 02 04:08:21 2023 +0100 |
committer | Simon Glass <sjg@chromium.org> | Thu Mar 09 08:50:47 2023 -0800 |
tree | ec9c0dcb1397e1887d7c0f7b8ea45ddf2dab63d7 | |
parent | 5370e243cf7962e3aa759559026136d5a99994dc [diff] |
cmd: fdt: Handle 64bit pointers in fdt get addr 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 <marek.vasut+renesas@mailbox.org> Reviewed-by: Simon Glass <sjg@chromium.org>