Infineon: Add PSoC63, PSoC61 platforms, update hw crypto acceleration, allow build on CM4 build
Release notes:
1. Added platforms PSoC63, PSoC61
2. Added possibility to build MCUBootApp for CM4 core and BlinkyApp for CM0p
3. Updated cy-mbedtls-acceleration package to support mbedtls-3.0
4. Change CY_SMIF_SYSCLK_HFCLK_DIVIDER to achieve increased SMIF clock source
5. Improved memory map configuration in json files
6. Added optional performance measurement macros
7. Improved usage of FIH types in security critical code branches
8. Updated documentation
9. Improved MISRAa nd CERT-C compliance
10. Switch to latest mtb-pdl-cat1 3.0.0
11. Fixed minor bugs
diff --git a/boot/bootutil/src/swap_scratch.c b/boot/bootutil/src/swap_scratch.c
index fea6ce1..0097611 100644
--- a/boot/bootutil/src/swap_scratch.c
+++ b/boot/bootutil/src/swap_scratch.c
@@ -435,11 +435,11 @@
int
swap_status_source(struct boot_loader_state *state)
{
- const struct boot_status_table *table;
+ const struct boot_status_table *table = NULL;
#if MCUBOOT_SWAP_USING_SCRATCH
- struct boot_swap_state state_scratch;
+ struct boot_swap_state state_scratch = {0};
#endif
- struct boot_swap_state state_primary_slot;
+ struct boot_swap_state state_primary_slot = {0};
int rc;
size_t i;
uint8_t source;