commit | 22cbd654d33f60b7d7941c4ba2484bcc610f4e50 | [log] [tgz] |
---|---|---|
author | Marek Vasut <marek.vasut+renesas@mailbox.org> | Thu Mar 02 04:08:21 2023 +0100 |
committer | Simon Glass <sjg@chromium.org> | Wed Mar 08 11:40:57 2023 -0800 |
tree | 7237aed92563068eeae9f36623073040ac590f66 | |
parent | 3300a6027772105ed4f4dd34001bd532ee21de8c [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>