Subject: Re: [libssh2] libssh2_sftp_read* bug

Re: [libssh2] libssh2_sftp_read* bug

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 13 Feb 2007 23:52:29 +0100 (CET)

On Tue, 13 Feb 2007, Lucas Newman wrote:

> This loop will process 1440 bytes of data that we passed in, and then 8
> bytes are left in the buffer. However, we didn't outside of this function
> we assumed that all 1448 bytes were processed and copied into the decrypted
> packet buffer.
>
> Back at where decrypt was called, we increment the write pointer the entire
> 1448 bytes of numdecrypt, so now those 8 unprocessed bytes are effectively
> skipped.

Thanks for being gentle with me, and now I clearly see your point. I'll try to
address this flaw within soon if you haven't.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2007-02-13