wolfBoot/src
Daniele Lacamera 00bc8b5823 F-6762: compare the TLV field budget in a 32-bit domain
wolfBoot_find_header() and the sign tool's re-parser checked each
field's 4+len against (uint16_t)(header_size - IMAGE_HEADER_OFFSET).
For any header of 64 KiB or more the cast wraps (0x10000 -> 0), so the
guard rejects every field and an image the tool signs cannot be parsed
by the bootloader - a pack/parse roundtrip break, fail-safe but fatal
for large TLVs (post-quantum signatures, big cert chains).

Compare in the uint32_t domain in both walkers. No shipped config
reaches this size yet (largest example is 12288), so this pins the
roundtrip for future large-header configs.

unit-parser-large-header (new) builds the walker with
IMAGE_HEADER_SIZE = 0x10008 - exactly the wrap boundary - and asserts
a 300-byte TLV and a 4-byte version field are located (both were
rejected pre-fix, proven against the pre-fix walker in a scratch
build).
2026-08-21 08:52:59 +02:00
..
dice Add wolfCOSE DICE attestation 2026-08-06 09:44:52 +02:00
x86 F-5968: zeroize disk-unlock passphrase from static ATA command buffer 2026-07-02 14:27:04 +02:00
arm_tee_psa_ipc.c F-7389: arm_tee: reject Secure .base in zero-length PSA iovecs 2026-08-04 07:02:53 +02:00
arm_tee_psa_veneer.c
boot_aarch64.c PolarFire SoC: address PR review 2026-08-03 12:27:22 +02:00
boot_aarch64_efi.c Add aarch64_efi target: wolfBoot as an AArch64 UEFI application 2026-08-10 21:03:50 +02:00
boot_aarch64_start.S tegra234: bare-metal BL33 target with verified EL2->EL1 + device-tree boot 2026-08-18 11:01:45 +02:00
boot_arm.c
boot_arm32.c PolarFire SoC: address PR review 2026-08-03 12:27:22 +02:00
boot_arm32_start.S
boot_ppc.c PolarFire SoC: address PR review 2026-08-03 12:27:22 +02:00
boot_ppc_mp.S
boot_ppc_start.S
boot_renesas.c
boot_renesas_start.S renesas-rx: fix build for GCC RX 8.3/14.2 2026-07-30 15:32:31 +02:00
boot_riscv.c RISC-V: minimal SBI runtime; PolarFire SoC boots 4-CPU SMP Yocto Linux 2026-08-03 12:27:22 +02:00
boot_riscv_start.S RISC-V: minimal SBI runtime; PolarFire SoC boots 4-CPU SMP Yocto Linux 2026-08-03 12:27:22 +02:00
boot_x86_64.c PolarFire SoC: address PR review 2026-08-03 12:27:22 +02:00
boot_x86_fsp.c
boot_x86_fsp_payload.c
boot_x86_fsp_start.S
clang_sections.S
ddr_cadence.c PolarFire SoC: LPDDR4 DDR init for MPFS250T Video Kit (M-Mode) 2026-08-03 12:27:22 +02:00
delta.c F-5965: skip wb_diff match candidates whose offset MSB collides with ESC 2026-07-02 14:35:07 +02:00
disk.c
elf.c update_ram: track the uImage entry override explicitly 2026-08-12 13:21:08 +02:00
fdt.c F-9757: length-bound the FIT name/compression string properties 2026-08-21 08:52:59 +02:00
flash_otp_keystore.c
fwtpm_callable.c
gpt.c
gzip.c
image.c F-9756: validate PT_LOAD segments before the scatter flash hash walk 2026-08-21 08:52:59 +02:00
libwolfboot.c F-6762: compare the TLV field budget in a 32-bit domain 2026-08-21 08:52:59 +02:00
loader.c
multiboot.c
pci.c 6561 - Restore upper 64-bit BAR register on pci_program_bar error paths 2026-07-14 17:44:26 +02:00
pkcs11_callable.c F-6875: pkcs11: zeroize NSC bounce buffers before freeing them 2026-08-04 08:26:17 +02:00
pkcs11_store.c
psa_store.c F-6407: zeroize static cached_sector after each flash commit in psa_store 2026-07-02 14:03:24 +02:00
qspi_flash.c F-7382: clip QSPI page program transfers at the device page boundary 2026-08-11 12:54:36 +02:00
riscv_sbi.c RISC-V: minimal SBI runtime; PolarFire SoC boots 4-CPU SMP Yocto Linux 2026-08-03 12:27:22 +02:00
sdhci.c Merge pull request #862 from danielinux/fenrir-fixes-2026-08-18 2026-08-18 12:12:50 -07:00
spi_flash.c
stage2_params.c
store_sbrk.c
store_sbrk.h
string.c Clean up build flag usage, use trng healthtest in test-app 2026-07-31 14:33:56 +02:00
tpm.c F-7069: clear the EH authValue from the stack in wolfBoot_tpm2_get_timestamp 2026-08-11 12:59:01 +02:00
uart_flash.c
update_disk.c F-7066: bound the FIT DTS relocation copy to the staging size 2026-08-21 08:52:59 +02:00
update_flash.c F-7071: scrub the staging buffer on the swap resume early-return 2026-08-21 08:52:59 +02:00
update_flash_hwswap.c Address PR #815 review comments 2026-07-02 19:20:34 +02:00
update_ram.c F-7066: bound the FIT DTS relocation copy to the staging size 2026-08-21 08:52:59 +02:00
vector_riscv.S RISC-V: minimal SBI runtime; PolarFire SoC boots 4-CPU SMP Yocto Linux 2026-08-03 12:27:22 +02:00
wc_callable.c
wolfhsm_callable.c
wolfhsm_flash_hal.c 6589 - Use volatile accumulator in whFlashH5_Verify CT compare 2026-07-14 17:44:26 +02:00
xmalloc.c