Bugzilla – Attachment 2617 Details for
Bug 2355
general protection / segfaults when PermitOpen=none
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
calloc permitted_adm_opens instead of malloc to ensure it's zeroed
sshd-permitopen-init.patch (text/plain), 617 bytes, created by
Darren Tucker
on 2015-05-08 13:24:16 AEST
(
hide
)
Description:
calloc permitted_adm_opens instead of malloc to ensure it's zeroed
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2015-05-08 13:24:16 AEST
Size:
617 bytes
patch
obsolete
>Index: channels.c >=================================================================== >RCS file: /cvs/src/usr.bin/ssh/channels.c,v >retrieving revision 1.342 >diff -u -p -r1.342 channels.c >--- channels.c 24 Apr 2015 01:36:00 -0000 1.342 >+++ channels.c 8 May 2015 03:17:33 -0000 >@@ -3498,7 +3498,7 @@ void > channel_disable_adm_local_opens(void) > { > channel_clear_adm_permitted_opens(); >- permitted_adm_opens = xmalloc(sizeof(*permitted_adm_opens)); >+ permitted_adm_opens = xcalloc(sizeof(*permitted_adm_opens), 1); > permitted_adm_opens[num_adm_permitted_opens].host_to_connect = NULL; > num_adm_permitted_opens = 1; > }
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 2355
:
2550
|
2551
|
2552
| 2617