Skip to content

Commit 8842493

Browse files
committed
update: always scrub final swap buffer
Ensure tmpBuffer is zeroized on the common exit path in wolfBoot_swap_and_final_erase, not only in EXT_ENCRYPTED builds. F/CI
1 parent f8ec206 commit 8842493

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/update_flash.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,9 +542,7 @@ static int RAMFUNCTION wolfBoot_swap_and_final_erase(int resume)
542542
#endif
543543
hal_flash_lock();
544544

545-
#ifdef EXT_ENCRYPTED
546545
wolfBoot_zeroize(tmpBuffer, sizeof(tmpBuffer));
547-
#endif
548546
(void)ret;
549547
return 0;
550548
}

0 commit comments

Comments
 (0)