Skip to content
Commit 98d114e7 authored by Marek Vasut's avatar Marek Vasut Committed by Simon Glass
Browse files

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: default avatarMarek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 068b7d9e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment