We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0baae6b commit b796d90Copy full SHA for b796d90
1 file changed
src/dice/dice.c
@@ -524,11 +524,14 @@ static int wolfboot_dice_collect_claims(struct wolfboot_dice_claims *claims)
524
XMEMSET(claims, 0, sizeof(*claims));
525
526
if (hal_uds_derive_key(uds, uds_len) != 0) {
527
+ /* Buffer may be partially filled, zero it to be sure */
528
+ wc_ForceZero(uds, sizeof(uds));
529
return WOLFBOOT_DICE_ERR_HW;
530
}
531
532
if (wolfboot_dice_get_ueid(claims->ueid, &claims->ueid_len,
533
uds, uds_len) != 0) {
534
535
536
537
@@ -581,6 +584,7 @@ static int wolfboot_dice_collect_claims(struct wolfboot_dice_claims *claims)
581
584
claims->component_count++;
582
585
583
586
587
588
return WOLFBOOT_DICE_SUCCESS;
589
590
0 commit comments