curl-users
Re: curl crash when using sftp with socks
Date: Thu, 4 Sep 2008 00:14:53 +0200 (CEST)
On Wed, 3 Sep 2008, Markus Moeller wrote:
>> Yes and yes. The cure is called version 7.19.0!
> It doesn't seem to be fixed.
> #0 libssh2_sftp_read (handle=0x0, buffer=0xbfabaa80 "\005\001",
> buffer_maxlen=2) at sftp.c:960
> #1 0xb7f25881 in Curl_sftp_recv (conn=0x8078490, sockindex=0, mem=0xbfabaa80
> "\005\001", len=2) at ssh.c:2413
> #2 0xb7efcaad in Curl_read (conn=0x8078490, sockfd=6, buf=0xbfabaa80
> "\005\001", sizerequested=2, n=0xbfaba9f4)
> at sendf.c:600
Argh. Indeed not! The fix in 7.19.0 simply fixed the _sending_ part and not
the _receiving_ part of the same problem.
We need a Curl_plain_read() to use for the SOCKS code in the same style I made
the Curl_plain_write() before. I'll see what I can do...
Thanks for the nice stack trace, it helped a lot!
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2008-09-04