Skip to content

Clarify that wolfBoot_open_image_address expects the passed in img structure to be memset and does not perform the memset itself.#712

Merged
danielinux merged 2 commits intowolfSSL:masterfrom
kareem-wolfssl:zd21134
Mar 5, 2026
Merged

Clarify that wolfBoot_open_image_address expects the passed in img structure to be memset and does not perform the memset itself.#712
danielinux merged 2 commits intowolfSSL:masterfrom
kareem-wolfssl:zd21134

Conversation

@kareem-wolfssl
Copy link
Contributor

Fixes ZD 21134.

…ructure to be memset and does not perform the memset itself.
@kareem-wolfssl kareem-wolfssl self-assigned this Mar 4, 2026
Copilot AI review requested due to automatic review settings March 4, 2026 23:12
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Clarifies the caller contract for wolfBoot_open_image_address() by documenting that the wolfBoot_image struct must be zero-initialized by the caller (Fixes ZD 21134).

Changes:

  • Updated the API comment in src/image.c to state the caller must memset the wolfBoot_image struct before calling.
  • Updated docs/lib.md to reflect the same expectation for img.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/image.c Adds API comment clarifying caller-managed struct zero-initialization.
docs/lib.md Updates library documentation to mention img must be memset before use.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@danielinux danielinux merged commit c737d80 into wolfSSL:master Mar 5, 2026
311 checks passed
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.

3 participants