Bugzilla – Attachment 1570 Details for
Bug 1528
sshd hangs when pasting more than 2k of text
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for channels.c
channels.c.diff (text/plain), 959 bytes, created by
Doke Scott
on 2008-10-02 06:32:07 AEST
(
hide
)
Description:
patch for channels.c
Filename:
MIME Type:
Creator:
Doke Scott
Created:
2008-10-02 06:32:07 AEST
Size:
959 bytes
patch
obsolete
>--- openssh-5.1p1/channels.c 2008-07-16 08:42:06.000000000 -0400 >+++ openssh-5.1p1-udel/channels.c 2008-10-01 15:57:04.000000000 -0400 >@@ -1603,8 +1603,20 @@ > return -1; > } > if (compat20 && c->isatty && dlen >= 1 && buf[0] != '\r') { >+ >+#ifndef __sun >+ /* >+ * On Solaris 9 and 10, on both sparc and i86pc, >+ * the tcgetattr call hangs forever after a large >+ * write to the pty. So pasting 50 lines or so of >+ * text will hang sshd. We'll avoid this by just >+ * assuming echo is set and always send the random >+ * data packet. >+ */ >+ > if (tcgetattr(c->wfd, &tio) == 0 && > !(tio.c_lflag & ECHO) && (tio.c_lflag & ICANON)) { >+#endif > /* > * Simulate echo to reduce the impact of > * traffic analysis. We need to match the >@@ -1613,7 +1625,9 @@ > */ > packet_send_ignore(4 + len); > packet_send(); >+#ifndef __sun > } >+#endif > } > buffer_consume(&c->output, len); > if (compat20 && len > 0) {
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 1528
:
1570
|
1571
|
1572
|
1677