Skip to content

tests: send the highwater IGNORE unkeyed - #1304

Merged
philljj merged 1 commit into
wolfSSL:masterfrom
ejohnstown:unit-highwater-strict-kex
Oct 8, 2026
Merged

philljj merged 1 commit into
wolfSSL:masterfrom
ejohnstown:unit-highwater-strict-kex

Conversation

@ejohnstown

@ejohnstown ejohnstown commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Master fails tests/unit.test on HighwaterQuietAfterBadPacket. The test landed in PR 1279, which last ran CI before strict KEX (PR 1271) was merged. Strict KEX is on by default and makes wolfSSH_SendIgnore() refuse an unkeyed send, and the test session is never keyed.

  • The test turns strict KEX off on its CTX so its final send still goes through wolfSSH_SendPacket() and the highwater check.

Strict KEX is on by default, and wolfSSH_SendIgnore() refuses an
unkeyed send under it. The HighwaterQuietAfterBadPacket test session
is never keyed, so it turns strict KEX off on its CTX before the
session exists and the final send reaches HighwaterCheck() again.
Copilot AI balanced review requested due to automatic review settings October 8, 2026 20:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused change correctly restores the test’s intended execution path.

0 open findings

What changed in this PR

Fixes HighwaterQuietAfterBadPacket so its unkeyed IGNORE packet reaches the intended highwater check.

Changes:

  • Disables strict KEX for the test context.
  • Documents why the test requires this exception.
File Description
tests/​unit.c Allows the unkeyed test send to proceed.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@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 #1304

Scan targets checked: wolfssh-bugs
Coverage: 1 of 1 in-scope changed file(s) opened by the reviewer

Fenrir result: Approved ✅

No new issues found in the changed files.

Advisory only — this automated result does not count as a GitHub approval.

Review tier: Lite

@philljj philljj self-assigned this Oct 8, 2026
@philljj
philljj merged commit 39983c1 into wolfSSL:master Oct 8, 2026
202 checks passed
@ejohnstown
ejohnstown deleted the unit-highwater-strict-kex branch October 8, 2026 20:35
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