Bugzilla – Attachment 3062 Details for
Bug 2786
New OpenSSH fails to parse public keys with bogus whitespace
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
do not be strict about whitespace in public keys
file_2786.txt (text/plain), 387 bytes, created by
Jakub Jelen
on 2017-09-28 00:54:32 AEST
(
hide
)
Description:
do not be strict about whitespace in public keys
Filename:
MIME Type:
Creator:
Jakub Jelen
Created:
2017-09-28 00:54:32 AEST
Size:
387 bytes
patch
obsolete
>diff --git a/sshkey.c b/sshkey.c >--- a/sshkey.c >+++ b/sshkey.c >@@ -1210,6 +1210,9 @@ sshkey_read(struct sshkey *ret, char **cpp) > return SSH_ERR_KEY_TYPE_MISMATCH; > if ((blob = sshbuf_new()) == NULL) > return SSH_ERR_ALLOC_FAIL; >+ /* skip whitespace */ >+ for (; *cp == ' ' || *cp == '\t'; cp++) >+ ; > /* trim comment */ > space = strchr(cp, ' '); > if (space) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 2786
:
3062
|
3128