Skip to content

Add data len check in wh_CommServer_RecvRequest#389

Open
padelsbach wants to merge 1 commit into
wolfSSL:mainfrom
padelsbach:comm-server-req-len-check
Open

Add data len check in wh_CommServer_RecvRequest#389
padelsbach wants to merge 1 commit into
wolfSSL:mainfrom
padelsbach:comm-server-req-len-check

Conversation

@padelsbach
Copy link
Copy Markdown
Contributor

Server side companion fix to #388, with similar new length check.

Copy link
Copy Markdown

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #389

Scan targets checked: wolfhsm-core-bugs, wolfhsm-crypto-bugs, wolfhsm-src

Findings: 1
1 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

Comment thread src/wh_comm.c Outdated
seq = wh_Translate16(magic, context->hdr->seq);

/* Copy the data from the internal buffer if necessary */
if ( (data != NULL) &&
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

@padelsbach padelsbach marked this pull request as ready for review May 29, 2026 21:59
@padelsbach padelsbach force-pushed the comm-server-req-len-check branch from 1c29249 to c2b5ea0 Compare May 29, 2026 22:46
Comment thread src/wh_comm.c Outdated
seq = wh_Translate16(magic, context->hdr->seq);

/* Copy the data from the internal buffer if necessary */
if ( (data != NULL) &&
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

Copy link
Copy Markdown

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #389

Scan targets checked: wolfhsm-core-bugs, wolfhsm-crypto-bugs, wolfhsm-src

No new issues found in the changed files. ✅

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