On Fri, Mar 11, 2011 at 04:09:17PM +0000, Sean Purdy wrote:
> I'm getting a buffer overflow when connecting to certain ssh servers
> with lftp.

Here's the relevant part of strace.  Unfortunately strace -f hangs
waiting for something, so this is just the top level strace.
Not sure how useful it is.


gettimeofday({1300102860, 682291}, NULL) = 0
ioctl(0, TIOCGPGRP, [12564])            = 0
getpgrp()                               = 12564
ioctl(1, TIOCGWINSZ, {ws_row=53, ws_col=160, ws_xpixel=1120, ws_ypixel=848}) = 
0write(1, "`ls batch_xxxxxxxxxxxxx' at 0 [Waiting for response...]", 55`ls 
batch_xxxxxxxxxxxxx' at 0 [Waiting for response...]) = 55
)                       = 1     

read(8, 0x89b81f8, 65536)               = -1 EAGAIN (Resource temporarily 
unavailable)
read(6, 0x89d2188, 65536)               = -1 EAGAIN (Resource temporarily 
unavailable)
waitpid(12566, 0xbfd087fc, WNOHANG|WSTOPPED) = 0
poll([{fd=8, events=POLLIN}, {fd=6, events=POLLIN}], 2, 173) = 1 ([{fd=6, 
revents=POLLIN}])gettimeofday({1300102860, 703044}, NULL) = 0read(8, 0x89b81f8, 
65536)               = -1 EAGAIN (Resource temporarily unavailable)read(6, 
"\0\0\0\262h\0\0\0\5\0\0\0\2\0\0\0\1.\0\0\0\255\2\0\0\0\0\0\0\20\0\0\0\0\26usernamehere@localhost\0\0\0\20chroot@localhost\0\0\1\375\0\0\0\0Mw\364\233\0\0\0\0Mw\364\233\0\0\0\2..\0\0\0\255\2\0\0\0\0\0\0\20\0\0\0\0\26usernamehere@localhost\0\0\0\20chroot@localhost\0\0\1\375\0\0\0\0H\352\360\3\0\0\0\0M{iM",
 65536
) = 182
waitpid(12566, 0xbfd087fc, WNOHANG|WSTOPPED) = 0gettimeofday({1300102860, 
703299}, NULL) = 0
open("/dev/tty", O_RDWR|O_NOCTTY|O_NONBLOCK) = 4writev(4, [{"*** ", 4}, 
{"buffer overflow detected", 24}, {" ***: ", 6}, {"./lftp-4.2.0", 12}, {" 
terminated\n", 12}], 5*** buffer overflow detected ***: ./lftp
-4.2.0 terminated
) = 58
futex(0xb774cd78, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0xb776c0e8, FUTEX_WAKE_PRIVATE, 2147483647) = 0


Sean

Reply via email to