KpyM Telnet/SSH Server - Forum
Error and Solution
drakkar Error and Solution
 
Hi.

I installed 'kts115.exe' and it throwed me an error every time I loged in correctly.

The problem is here:
>> this->ReadFirstPacket( this->ssh_first_read );
>> this->ssh.IsSftp( this->ssh_first_read );

Funcion ReadFirstPacket(str) can return str = "".

In function IsSftp(packet), there is super IF from packet[0] to packet[8] and threisnt a length test...

Solution:
In file 'KSsh.hxx', before IFs, arround line 250 write:
>> if( packet.length() < (unsigned int)9) return false;

Bye.


Kroum Grigorov
 
Yep, stupid bug.
I'll add your fix tonight and upload the new binaries.

10x
Kroum


 

© 2007 - 2008 Kroum Grigorov
Powered by phpBB © 2001, 2005 phpBB Group