wolfBoot/tools
Daniele Lacamera bc743ad3d7 F-7987: abort the swap when a sector copy fails
wolfBoot_copy_sector() discarded the return value of every flash
operation it performed and unconditionally returned the number of bytes
processed. Callers therefore treated a partially written sector as a
completed one and advanced the persistent sector flags, which are the
only record used to resume an interrupted swap. A write error while
copying BOOT into UPDATE (the backup step) could leave both the running
image and its backup corrupted with no way to redo the sector.

Check the result of every erase/read/write in wolfBoot_copy_sector() and
return -1 on the first failure. In the interruptible swap loop, the
delta loop and the DISABLE_BACKUP direct copy, stop on a negative return
without advancing the sector flag or confirming the boot partition, so
the swap is retried from the last completed step on the next boot.
2026-08-11 12:48:05 +02:00
..
armclang Remove obvious/redundant comments 2026-07-31 16:00:14 +02:00
bin-assemble renesas-rx: fix build for GCC RX 8.3/14.2 2026-07-30 15:32:31 +02:00
check_config
ci PolarFire SoC: LPDDR4 DDR init for MPFS250T Video Kit (M-Mode) 2026-08-03 12:27:22 +02:00
delta tools/delta: check pwrite result in bmpatch 2026-07-02 17:01:28 +02:00
efi efi: sign the x86_64_efi reference kernel with an authenticated HDR_CMDLINE 2026-08-10 21:03:50 +02:00
elf-parser
fdt-parser
keytools F-8003: separate decoded key objects for hybrid signers 2026-08-11 09:25:54 +02:00
lms
openocd Support for MAX32666 2026-07-31 14:33:56 +02:00
renode
scripts aarch64_efi: address PR818 review (measure cmdline, DTB GUID, size/page/desc fixes) 2026-08-10 21:03:50 +02:00
squashelf
test-expect-version
test-update-server
tpm
uart-flash-server
unit-tests F-7987: abort the swap when a sector copy fails 2026-08-11 12:48:05 +02:00
xmss
config.mk Add support for auxillary algorithms and cert chain/TPM usage 2026-07-22 11:47:16 +02:00
test-delta.mk
test-enc.mk
test-renode.mk
test.mk Update wolfssl submodule 2026-07-31 14:33:56 +02:00
wolfboot-rpi-devicetree.diff