Bugzilla – Attachment 819 Details for
Bug 896
Improper Input buffer handling
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Buffer only a reasonable number of packets' worth of input data
openssh-input-buffer-limit2.patch (text/plain), 614 bytes, created by
Darren Tucker
on 2005-02-11 13:55:04 AEDT
(
hide
)
Description:
Buffer only a reasonable number of packets' worth of input data
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2005-02-11 13:55:04 AEDT
Size:
614 bytes
patch
obsolete
>Index: channels.c >=================================================================== >RCS file: /cvs/src/usr.bin/ssh/channels.c,v >retrieving revision 1.211 >diff -u -p -r1.211 channels.c >--- channels.c 29 Oct 2004 21:47:15 -0000 1.211 >+++ channels.c 11 Feb 2005 02:52:24 -0000 >@@ -711,6 +711,9 @@ channel_pre_open(Channel *c, fd_set * re > { > u_int limit = compat20 ? c->remote_window : packet_get_maxsize(); > >+ /* buffer at most 32 packets worth of input data */ >+ limit = MIN(limit, (CHAN_SES_PACKET_DEFAULT * 32)); >+ > if (c->istate == CHAN_INPUT_OPEN && > limit > 0 && > buffer_len(&c->input) < limit)
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 896
:
685
|
817
|
818
| 819