Subject: Re: [libssh2] #263: libssh2_channel_read for exec ends unpredictably

Re: [libssh2] #263: libssh2_channel_read for exec ends unpredictably

From: libssh2 Trac <trac_at_libssh2.stuge.se>
Date: Fri, 12 Apr 2013 08:49:22 -0000

#263: libssh2_channel_read for exec ends unpredictably
----------------------+-------------------
  Reporter: xtravar | Owner:
      Type: defect | Status: new
  Priority: normal | Milestone: 1.4.3
 Component: API | Version: 1.4.2
Resolution: | Keywords:
Blocked By: | Blocks:
----------------------+-------------------

Comment (by xtravar):

 After some debugging, it appears that an invalid packet type is coming in
 after SSH_MSG_CHANNEL_DATA.

 Good run:
  datalen: 17 msg: OPEN_CONFIRMATION
  datalen: 9 msg: WINDOW_ADJUST
  datalen: 5 msg: SUCCESS
  datalen: 8201 msg: DATA
  datalen: 25 msg: REQUEST
  datalen: 13148 msg: DATA
  datalen: 5 msg: EOF
  datalen: 5 msg: CLOSE

 Bad run:
  datalen: 17 msg: OPEN_CONFIRMATION
  datalen: 9 msg: WINDOW_ADJUST
  datalen: 5 msg: SUCCESS
  datalen: 8201 msg: DATA
  datalen: 8201 msg: DATA
  datalen: 3888 msg: DATA
  datalen: 1077 msg: 18
  datalen: 5 msg: EOF
  datalen: 25 msg: REQUEST
  datalen: 5 msg: CLOSE

-- 
Ticket URL: <https://trac.libssh2.org/ticket/263#comment:1>
libssh2 <https://trac.libssh2.org/>
C library for writing portable SSH2 clients
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2013-04-12