Bugzilla – Attachment 1554 Details for
Bug 1496
ssh fails with xmalloc: zero size
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Correct patch
openssh-5.1p1-bannerlen.patch (text/plain), 618 bytes, created by
Tomas Mraz
on 2008-07-31 19:21:05 AEST
(
hide
)
Description:
Correct patch
Filename:
MIME Type:
Creator:
Tomas Mraz
Created:
2008-07-31 19:21:05 AEST
Size:
618 bytes
patch
obsolete
>diff -up openssh-5.1p1/sshconnect2.c.bannerlen openssh-5.1p1/sshconnect2.c >--- openssh-5.1p1/sshconnect2.c.bannerlen 2008-07-23 19:18:15.000000000 +0200 >+++ openssh-5.1p1/sshconnect2.c 2008-07-31 11:16:51.000000000 +0200 >@@ -387,8 +387,9 @@ input_userauth_banner(int type, u_int32_ > if (options.log_level >= SYSLOG_LEVEL_INFO) { > if (len > 65536) > len = 65536; >- msg = xmalloc(len * 4); /* max expansion from strnvis() */ >+ msg = xmalloc(len * 4 + 1); /* max expansion from strnvis() */ > strnvis(msg, raw, len * 4, VIS_SAFE|VIS_OCTAL); >+ msg[len*4] = '\0'; > fprintf(stderr, "%s", msg); > xfree(msg); > }
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 1496
:
1553
| 1554