]> git.baikalelectronics.ru Git - uboot.git/commit
ifwitool: Fix member access
authorSimon Glass <sjg@chromium.org>
Wed, 18 Jan 2023 20:13:17 +0000 (13:13 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 27 Jan 2023 17:51:26 +0000 (12:51 -0500)
commit79178f98c43e4648604814f4dd17d33cee4cbb1c
treeb54b72d81df05d3ed36c2441c40ab13b2060d46f
parent84cafc999ef9c489efdae716861525a15c77abb5
ifwitool: Fix member access

On a second and third look, a recent patch seems to be writing to the
wrong place - updating offsets from the address of the pointer instead
of what the pointer points to.

Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: 9a0b40ff5aa ("tool: ifwitool: Fix buffer overflow")
Acked-by: Sean Anderson <seanga2@gmail.com>
tools/ifwitool.c