-
Notifications
You must be signed in to change notification settings - Fork 115
Fix multiple reported issues #1084
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
1c61fe4
3ae9836
8ad669a
fd36f9a
712fe71
9407efa
78390be
08316f8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5055,16 +5055,24 @@ static int DoKexInit(WOLFSSH* ssh, byte* buf, word32 len, word32* idx) | |
| if (ret == WS_SUCCESS) { | ||
| WLOG(WS_LOG_DEBUG, "DKI: Languages - Client to Server"); | ||
| ret = GetUint32(&skipSz, buf, len, &begin); | ||
| if (ret == WS_SUCCESS) | ||
| begin += skipSz; | ||
| if (ret == WS_SUCCESS) { | ||
| if (skipSz <= len - begin) | ||
| begin += skipSz; | ||
| else | ||
| ret = WS_BUFFER_E; | ||
| } | ||
| } | ||
|
|
||
| /* Languages - Server to Client, skip */ | ||
| if (ret == WS_SUCCESS) { | ||
| WLOG(WS_LOG_DEBUG, "DKI: Languages - Server to Client"); | ||
| ret = GetUint32(&skipSz, buf, len, &begin); | ||
| if (ret == WS_SUCCESS) | ||
| begin += skipSz; | ||
| if (ret == WS_SUCCESS) { | ||
| if (skipSz <= len - begin) | ||
| begin += skipSz; | ||
| else | ||
| ret = WS_BUFFER_E; | ||
| } | ||
| } | ||
|
|
||
| /* First KEX Packet Follows */ | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 [Medium] ML-DSA-only builds do not advertise publickey auth by default The PR adds ML-DSA public-key authentication paths and compiles Recommendation: Update the compile-time gate to include the public-key algorithms now supported by this file, at least ML-DSA, and add a regression test for an ML-DSA-only default auth list. |
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3835,7 +3835,7 @@ int wolfSSH_RealPath(const char* defaultPath, char* in, | |
| } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 [Medium] TPM host key API leaves ctx mutated when registration fails The new API stores Recommendation: Commit TPM device/key pointers only after the host-key slot registration succeeds, or explicitly roll them back on failure.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 [Medium] New ML-DSA ASN.1 public-key path bypasses caller output buffer The ML-DSA public-key branch always allocates a new output buffer and assigns it to Recommendation: Compute the required size first, use |
||
| /* Everything else is copied */ | ||
| else { | ||
| if (curSz >= outSz - segSz) { | ||
| if (segSz > outSz || curSz >= outSz - segSz) { | ||
| return WS_INVALID_PATH_E; | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.