Hello!

I've tested the upstream patch (plus your suggestion). This solves
/my/ problem.


diff -u openssh-5.1p1/sshconnect2.c openssh-5.1p1/sshconnect2.c
--- openssh-5.1p1/sshconnect2.c
+++ openssh-5.1p1/sshconnect2.c
@@ -441,8 +441,9 @@
        if (options.log_level >= SYSLOG_LEVEL_INFO) {
                if (len > 65536)
                        len = 65536;
-               msg = xmalloc(len * 4); /* max expansion from strnvis() */
-               strnvis(msg, raw, len * 4, VIS_SAFE|VIS_OCTAL);
+               msg = xmalloc(len * 4 + 1); /* max expansion from strnvis() */
+               strnvis(msg, raw, len * 4 + 1, VIS_SAFE|VIS_OCTAL);
+               msg[len*4] = '\0';
                fprintf(stderr, "%s", msg);
                xfree(msg);
        }

- Christian





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to