mirror of
https://xff.cz/git/u-boot/
synced 2025-10-01 07:21:23 +02:00
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>
This commit is contained in:
@@ -178,7 +178,7 @@ static u32 ta_avb_invoke_func(struct udevice *dev, u32 func, uint num_params,
|
|||||||
if (!ep)
|
if (!ep)
|
||||||
return TEE_ERROR_ITEM_NOT_FOUND;
|
return TEE_ERROR_ITEM_NOT_FOUND;
|
||||||
|
|
||||||
value_sz = strlen(ep->data);
|
value_sz = strlen(ep->data) + 1;
|
||||||
memcpy(value, ep->data, value_sz);
|
memcpy(value, ep->data, value_sz);
|
||||||
|
|
||||||
return TEE_SUCCESS;
|
return TEE_SUCCESS;
|
||||||
|
Reference in New Issue
Block a user