Skip to contentSkip to conversation

test/py: avb: fix test_avb_persistent_values fail

PATCH New Igor Opaniuk 2 participants 2 messages May 6, 2019 – May 10, 2019 TEE

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test/py: avb: fix test_avb_persistent_values fail

From: Igor Opaniuk <[email protected]>

Fix test_avb_persistent_values() pytest, which was failing because of wrong size value provided from tee sandbox driver.

---
 drivers/tee/sandbox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tee/sandbox.c +1 -1
index a136bc9609..2f3355c7b7 100644
@@ -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;
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 test/py: avb: fix test_avb_persistent_values fail

Quoted 7 lines · Igor Opaniuk

From: Igor Opaniuk <[email protected]>

Fix test_avb_persistent_values() pytest, which was failing because of wrong size value provided from tee sandbox driver.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190510/6151aeae/attachment.sig>