From 3b847e203d7ff65178884ba12d84a477bbb6212d Mon Sep 17 00:00:00 2001 From: Jayakrishnan M R Date: Sun, 30 Aug 2026 09:38:24 +0530 Subject: [PATCH 1/3] fix: correct eos_crc32 signature mismatch and duplicate slot_size declaration --- core/recovery.c | 3 +-- include/eos_image.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/recovery.c b/core/recovery.c index 18a88ba..07f1c99 100644 --- a/core/recovery.c +++ b/core/recovery.c @@ -284,7 +284,6 @@ static int recovery_handle_write(eos_slot_t slot, uint32_t offset, uint16_t len) /* offset/len come straight from the wire; without this check a * recovery client can write past the slot boundary into the other * slot, boot-control blocks, or the boot log. */ - uint32_t slot_size = eos_hal_slot_size(slot); if (slot_size == 0 || (uint64_t)offset + len > (uint64_t)slot_size) return recovery_send_nack(); @@ -514,4 +513,4 @@ int eos_recovery_enter(eos_bootctl_t *bctl) } return EOS_OK; -} +} \ No newline at end of file diff --git a/include/eos_image.h b/include/eos_image.h index 049e6c8..a2a9d18 100644 --- a/include/eos_image.h +++ b/include/eos_image.h @@ -146,7 +146,7 @@ int eos_crc32_checked(uint32_t addr, size_t len, uint32_t *out_crc); * @param len Length in bytes. * @return CRC32 value, or 0 if the region could not be read. */ -int eos_crc32(uint32_t addr, size_t len, uint32_t *out); +uint32_t eos_crc32(uint32_t addr, size_t len); #ifdef __cplusplus } From 04aa4d952cd6785e5e4183bef1eb5f1a14a51f24 Mon Sep 17 00:00:00 2001 From: Jayakrishnan M R Date: Sun, 30 Aug 2026 15:21:58 +0530 Subject: [PATCH 2/3] test: verify commit signing works From f43aa1c8297ed91733288b0fe89a5fac33f1c33c Mon Sep 17 00:00:00 2001 From: Jayakrishnan M R Date: Sun, 30 Aug 2026 15:29:40 +0530 Subject: [PATCH 3/3] test: verify commit signing works v2