#211: size mismatch between struct transportpacket fields causes libssh2 to get
stuck
---------------------------------------------------------------------------------------+
  Reporter:  
www.google.com/accounts/o8/id?id=aitoawlhggg_yplkl7grwwpbbum-omtqud4rmna  |     
   Owner:  Peter Stuge <peter@…>       
      Type:  defect                                                             
       |       Status:  closed                      
  Priority:  normal                                                             
       |    Milestone:  1.2.8                       
 Component:  protocol                                                           
       |      Version:  1.2.7                       
Resolution:  fixed                                                              
       |     Keywords:                              
    Blocks:                                                                     
       |   Blocked By:                              
---------------------------------------------------------------------------------------+

Comment (by 
www.google.com/accounts/o8/id?id=aitoawlhggg_yplkl7grwwpbbum-omtqud4rmna):

 Replying to [comment:3 Peter Stuge <peter@…>]:
 > In [516fa7fdd9b55def83c124f223889c70b9e021ab/libssh2]:
 > {{{
 > #!CommitTicketReference repository="libssh2"
 revision="516fa7fdd9b55def83c124f223889c70b9e021ab"
 > Don't save allocated packet size until it has actually been allocated
 >
 Thanks for the fix. However won't this get us into trouble if there was a
 error after p->total_num was set (for example while decrypting a chunk).
 Now if we try to free a channel in response to that error, we would get
 the same problem as reported in comment #2.
 Jasmeet

-- 
Ticket URL: <http://trac.libssh2.org/ticket/211#comment:4>
libssh2 <http://trac.libssh2.org/>
C library for writing portable SSH2 clients

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to