mirror of https://github.com/wolfSSL/wolfBoot.git
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/CIpull/745/head
parent
f8ec206082
commit
884249316b
|
|
@ -542,9 +542,7 @@ static int RAMFUNCTION wolfBoot_swap_and_final_erase(int resume)
|
|||
#endif
|
||||
hal_flash_lock();
|
||||
|
||||
#ifdef EXT_ENCRYPTED
|
||||
wolfBoot_zeroize(tmpBuffer, sizeof(tmpBuffer));
|
||||
#endif
|
||||
(void)ret;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue