Bugzilla – Attachment 3475 Details for
Bug 3269
sshbuf_get_u32() called with enum type argument in monitor.c
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
explicitly use uint32 for enum in monitor
sshd-monitor-enum-uint32.patch (text/plain), 913 bytes, created by
Darren Tucker
on 2021-03-04 10:00:20 AEDT
(
hide
)
Description:
explicitly use uint32 for enum in monitor
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2021-03-04 10:00:20 AEDT
Size:
913 bytes
patch
obsolete
>Index: monitor.c >=================================================================== >RCS file: /cvs/src/usr.bin/ssh/monitor.c,v >retrieving revision 1.223 >diff -u -p -r1.223 monitor.c >--- monitor.c 27 Jan 2021 10:05:28 -0000 1.223 >+++ monitor.c 3 Mar 2021 22:25:51 -0000 >@@ -909,16 +909,18 @@ mm_answer_keyallowed(struct ssh *ssh, in > char *cuser, *chost; > u_int pubkey_auth_attempt; > enum mm_keytype type = 0; >+ u_int32_t type_u32 = 0; > int r, allowed = 0; > struct sshauthopt *opts = NULL; > > debug3_f("entering"); >- if ((r = sshbuf_get_u32(m, &type)) != 0 || >+ if ((r = sshbuf_get_u32(m, &type_u32)) != 0 || > (r = sshbuf_get_cstring(m, &cuser, NULL)) != 0 || > (r = sshbuf_get_cstring(m, &chost, NULL)) != 0 || > (r = sshkey_froms(m, &key)) != 0 || > (r = sshbuf_get_u32(m, &pubkey_auth_attempt)) != 0) > fatal_fr(r, "parse"); >+ type = type_u32; > > debug3_f("key_from_blob: %p", key); >
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 3269
: 3475