Skip to content

Fix memory-safety and error-handling edge cases#1122

Open
stenslae wants to merge 1 commit into
wolfSSL:masterfrom
stenslae:pr-memory-safety
Open

Fix memory-safety and error-handling edge cases#1122
stenslae wants to merge 1 commit into
wolfSSL:masterfrom
stenslae:pr-memory-safety

Conversation

@stenslae

Copy link
Copy Markdown
Member

Fixed a potential buffer overflow in PrepareUserAuthRequestPassword() to check if adding the password length and overhead to payloadSz would exceed MAX_PACKET_SZ before actually modifying it. Modified wolfSSH_MakeMlDsaKey() to dynamically allocate the MlDsaKey structure on the heap rather than the stack when WOLFSSH_SMALL_STACK is defined. Added test coverage.

@stenslae stenslae self-assigned this Jul 23, 2026
@stenslae
stenslae requested review from wolfSSL-Fenrir-bot and removed request for wolfSSL-Fenrir-bot July 23, 2026 18:59

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #1122

Scan targets checked: wolfssh-bugs, wolfssh-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.

2 participants