Repository navigation
Conversation
…ings Suggested by GitHub Code Quality
There was a problem hiding this comment.
Pull request overview
This pull request hardens the hybrid KEX implementation by adding an explicit NULL check for the host-key reply packet buffer (data) in kex_mlkem768x25519_sha256(), aligning its behavior and error reporting with other KEX implementations in src/kex.c.
Changes:
- Add a guard clause in
kex_mlkem768x25519_sha256()to error out early whendata == NULL. - Return a consistent protocol error (
LIBSSH2_ERROR_PROTO) with message"Missing host key data"as used by sibling KEX paths.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Seen test_ssh2 fail in job 'freebsd 15.1, AM clang openssl x86_64' the second time: First time: (no leads in the log) |
Refs: https://github.com/libssh2/libssh2/actions/runs/28740149966/job/85221371725 https://github.com/libssh2/libssh2/actions/runs/28745018411/job/85234337471?pr=2215 https://github.com/libssh2/libssh2/actions/runs/28756588534/job/85264629489?pr=2226 Also: - fix dumping log files in BSD jobs. Follow-up to e4f700e #1948 - delete copy-paste leftovers. Follow-up to e4f700e #1948 Bug: #2215 (comment) Closes #2227
Suggested by GitHub Code Quality
Follow-up to 3ba252e #1644