cmd: fix loads, saves on sandbox
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 25 Jun 2023 09:54:23 +0000 (11:54 +0200)
committerSimon Glass <sjg@chromium.org>
Thu, 20 Jul 2023 20:10:57 +0000 (14:10 -0600)
commit338b67f76cc37c78b2b25f3531924d1bce359aea
tree161b70c834211c085776b4319662d3e10f5c09ee
parent76e160761777ae9e93b209a73ed6c417ddb68cc9
cmd: fix loads, saves on sandbox

The loads and saves commands crash on the sandbox due to illegal memory
access.

For command line arguments the sandbox uses a virtual address space which
does not equal the addresses of the memory allocated with memmap(). Add the
missing address translations for the loads and saves commands.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/load.c