summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Opaniuk <igor.opaniuk@gmail.com>2019-05-06 12:07:31 +0300
committerTom Rini <trini@konsulko.com>2019-05-09 19:52:55 -0400
commit34501d6713d2ba9d6a8e8c7a1f2942cc16ef9043 (patch)
treee9bf4fa0bdda0cb310d5c81060c8a9cef60a5882
parent28b4ba94811122d7a91924f62d63d8b25bfa979c (diff)
test/py: avb: fix test_avb_persistent_values fail
Fix test_avb_persistent_values() pytest, which was failing because of wrong size value provided from tee sandbox driver. Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Igor Opaniuk <igor.opaniuk@gmail.com>
-rw-r--r--drivers/tee/sandbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tee/sandbox.c b/drivers/tee/sandbox.c
index a136bc9609..2f3355c7b7 100644
--- a/drivers/tee/sandbox.c
+++ b/drivers/tee/sandbox.c
@@ -178,7 +178,7 @@ static u32 ta_avb_invoke_func(struct udevice *dev, u32 func, uint num_params,
if (!ep)
return TEE_ERROR_ITEM_NOT_FOUND;
- value_sz = strlen(ep->data);
+ value_sz = strlen(ep->data) + 1;
memcpy(value, ep->data, value_sz);
return TEE_SUCCESS;