Skip to content

payload_update: Round up erase size to 4KB sector boundary for binay files - #298

Merged
ckungler merged 1 commit into
mainfrom
binary_erase_round_up
Sep 17, 2026
Merged

ckungler merged 1 commit into
mainfrom
binary_erase_round_up

Conversation

@ckungler

Copy link
Copy Markdown
Collaborator

When binary_file is true (--binary), round the erase length in libhoth_payload_update up to the next 4 KiB sector boundary before calling libhoth_payload_update_erase, while checking for uint32_t overflow.

… files

When binary_file is true (--binary), round the erase length in libhoth_payload_update up to the next 4 KiB sector boundary before calling libhoth_payload_update_erase, while checking for uint32_t overflow.

Signed-off-by: Christian Kungler <ckungler@google.com>
@ckungler
ckungler force-pushed the binary_erase_round_up branch from 301d8b1 to fc706fd Compare September 17, 2026 20:54
@ckungler
ckungler merged commit 93b9754 into main Sep 17, 2026
11 checks passed
@ckungler
ckungler deleted the binary_erase_round_up branch September 17, 2026 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants