Bugzilla – Attachment 480 Details for
Bug 741
SSH with long banner has xmalloc error and disables the -q option
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
The version of the banner patch I'm using
banner.patch.txt (text/plain), 1018 bytes, created by
Darryl Baker
on 2003-10-10 12:49:51 AEST
(
hide
)
Description:
The version of the banner patch I'm using
Filename:
MIME Type:
Creator:
Darryl Baker
Created:
2003-10-10 12:49:51 AEST
Size:
1018 bytes
patch
obsolete
>Index: sshconnect2.c >=================================================================== >RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/sshconnect2.c,v >retrieving revision 1.112 >diff -u -p -r1.112 sshconnect2.c >--- sshconnect2.c 26 Aug 2003 02:14:05 -0000 1.112 >+++ sshconnect2.c 17 Sep 2003 14:40:24 -0000 >@@ -357,12 +357,18 @@ input_userauth_error(int type, u_int32_t > void > input_userauth_banner(int type, u_int32_t seq, void *ctxt) > { >- char *msg, *lang; >+ char *fmtbuf, *msgbuf, *lang; >+ size_t len; >+ > debug3("input_userauth_banner"); >- msg = packet_get_string(NULL); >+ msgbuf = packet_get_string(NULL); > lang = packet_get_string(NULL); >- logit("%s", msg); >- xfree(msg); >+ len = strlen(msgbuf); >+ fmtbuf = xmalloc(len); >+ strnvis(fmtbuf, msgbuf, len, VIS_SAFE|VIS_OCTAL); >+ fprintf(stderr, "%s", fmtbuf); >+ xfree(msgbuf); >+ xfree(fmtbuf); > xfree(lang); > }
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 741
: 480 |
481
|
482