Subject: Re: libssh2 for SFTP

Re: libssh2 for SFTP

From: Tor Arntsen <>
Date: Mon, 24 Aug 2009 11:36:43 +0200

On Mon, Aug 24, 2009 at 08:01, Shangguan, Xuan
(FXSGSC)<> wrote:
> debug1: Sending subsystem: sftp
> Received message too long 1399157876

That number looks suspicious, and it seems to be some ASCII data
instead of a number.
In hex it's 0x53657474, which is "Sett" in ASCII.
There are several _libssh2_debug() calls in channel.c and session.c
which prints "Setting ..", so my guess is that the value seen is the
first four bytes (as in size of an integer) from one of those strings.
So, invalid memory access somewhere.

Received on 2009-08-24