client received the packet crash on
Code: Select all
// -------------------------------------------------------------------
// Uncompress
// -------------------------------------------------------------------
void ByteArray::Uncompress()
{
.......
//crash here
uncompress(dataUncompressed.get(), &sizeUncompressed, dataToUncompress.get(), buffer->size());
......
}
if i set [Protocol compression threshold > the data packet Size(the larger data packet!!!)] on server;client received is normal;
if Protocol compression threshold = 1K, and the data packet is larger than the value,but not too lager much.
client execute ByteArray::Uncompress() is normal too,no crash;
so,if the data packet is too lager much,client crash!!!
i use 0.9.7.