]> Git Repo - J-u-boot.git/commit
cmd: fdt: Handle 64bit pointers in fdt get addr
authorMarek Vasut <[email protected]>
Thu, 2 Mar 2023 03:08:21 +0000 (04:08 +0100)
committerSimon Glass <[email protected]>
Wed, 8 Mar 2023 19:40:57 +0000 (11:40 -0800)
commit22cbd654d33f60b7d7941c4ba2484bcc610f4e50
tree7237aed92563068eeae9f36623073040ac590f66
parent3300a6027772105ed4f4dd34001bd532ee21de8c
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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
cmd/fdt.c
This page took 0.033359 seconds and 4 git commands to generate.