Skip to content

Fix DoUserAuthBanner()#937

Merged
ejohnstown merged 2 commits intowolfSSL:masterfrom
yosuke-wolfssl:f_865
Apr 20, 2026
Merged

Fix DoUserAuthBanner()#937
ejohnstown merged 2 commits intowolfSSL:masterfrom
yosuke-wolfssl:f_865

Conversation

@yosuke-wolfssl
Copy link
Copy Markdown
Contributor

@yosuke-wolfssl yosuke-wolfssl commented Apr 20, 2026

This PR fixes DoUserAuthBanner() to consume the full language tag field.
Also, this adds a test.

@yosuke-wolfssl yosuke-wolfssl self-assigned this Apr 20, 2026
Copilot AI review requested due to automatic review settings April 20, 2026 07:35
Copy link
Copy Markdown
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

Fixes DoUserAuthBanner() parsing so it correctly consumes the entire language field of SSH_MSG_USERAUTH_BANNER, preventing leftover payload bytes from desynchronizing subsequent packet decoding.

Changes:

  • Replace GetSize() (which only reads the string length) with GetSkip() to consume the full language-tag string field after the banner message.

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

Comment thread src/internal.c
@ejohnstown ejohnstown merged commit 8efa825 into wolfSSL:master Apr 20, 2026
131 checks passed
@yosuke-wolfssl yosuke-wolfssl deleted the f_865 branch April 20, 2026 23:13
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.

4 participants