summaryrefslogtreecommitdiff
path: root/tools/u_boot_pylib/test_util.py
diff options
context:
space:
mode:
authorVincent Stehlé <vincent.stehle@arm.com>2025-04-04 14:53:58 +0200
committerTom Rini <trini@konsulko.com>2025-04-11 12:16:32 -0600
commitc4b273e441327f74449b3035d61ea92a077c1baa (patch)
tree6d4b13a6690115f6a5755a1563caf3f42946d953 /tools/u_boot_pylib/test_util.py
parentba13350d49370373bda42f9823d923adbee0e764 (diff)
cmd: optee: fix hello subcommand argument check
When the `optee hello' subcommand is called, the do_optee_hello_world_ta() function passes a NULL pointer to the strcmp() function while verifying its input argument, which results in the following crash: => optee hello "Synchronous Abort" handler, esr 0x96000010, far 0x0 Fix this by verifying the number of input arguments instead. Fixes: e3cf80fbe02d ("cmd: Add support for optee commands") Signed-off-by: Vincent Stehlé <vincent.stehle@arm.com> Cc: Jens Wiklander <jens.wiklander@linaro.org> Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org> Cc: Tom Rini <trini@konsulko.com> Cc: Jerome Forissier <jerome.forissier@linaro.org> Cc: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Diffstat (limited to 'tools/u_boot_pylib/test_util.py')
0 files changed, 0 insertions, 0 deletions