Subject: Re: Crash in embedded system

Re: Crash in embedded system

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 14 Jun 2010 14:20:57 +0200 (CEST)

On Mon, 14 Jun 2010, Mark Smith wrote:

> (gdb) p session->packet
> $3 = {
> buf = "SSH-2.0-OpenSSH_5.1p1 Debian-5avco0\r\n", '\0' <repeats 16346
> times>,
> init = "\000\000\000\000", writeidx = 37, readidx = 5,
> packet_length = 1397966893, padding_length = 50, data_num = 0,
> total_num = 1397966892, payload = 0x0, wptr = 0x0, outbuf = 0x0,
> ototal_num = 0, odata = 0x0, olen = 0, osent = 0}

That packet_length is really wrong.

1397966893 converted to hex is 5353482D which happens to be the ascii codes
for "SSH-"...

Any chance you can backtrack how the packet_length got so weird? I suspect
that is a reason for the following weirdness.

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-06-14