mirror of https://github.com/wolfSSL/wolfBoot.git
The double-word fast path in hal_flash_write() on STM32G4, STM32C0 and STM32G0 was selected on 'len - i > 3' but programs an 8-byte unit, so an aligned 4-7 byte tail read up to 4 bytes past the caller's buffer and programmed those bytes into flash. Require len - i >= 8 before taking the fast path. Shorter tails fall through to the existing RMW branch, which rewrites the unit with the out-of-range bytes read back from flash, so nothing past len is read or programmed. Add unit-stm32g4-write (same harness as the STM32L5/STM32U5 twins), which fails on the 60-byte tail before the fix. |
||
|---|---|---|
| .. | ||
| armclang | ||
| bin-assemble | ||
| check_config | ||
| ci | ||
| delta | ||
| efi | ||
| elf-parser | ||
| fdt-parser | ||
| keytools | ||
| lms | ||
| openocd | ||
| renode | ||
| sbom | ||
| scripts | ||
| squashelf | ||
| test-expect-version | ||
| test-update-server | ||
| tpm | ||
| uart-flash-server | ||
| unit-tests | ||
| xmss | ||
| config.mk | ||
| test-delta.mk | ||
| test-enc.mk | ||
| test-renode.mk | ||
| test.mk | ||
| wolfboot-rpi-devicetree.diff | ||