mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-18 02:50:47 -04:00
fixed bug in serializer caused to not updating the size parameter. Also fixes unittests
This commit is contained in:
parent
f7f0d8ddd0
commit
868c0467f2
2 changed files with 9 additions and 3 deletions
|
@ -387,7 +387,7 @@ RsItem * RsSerialiser::deserialise(void *data, uint32_t *size)
|
|||
//std::cerr << "RsSerialiser::deserialise() RsItem Type: " << std::hex << getRsItemId(data) << " Size: " << pkt_size;
|
||||
//std::cerr << std::endl;
|
||||
|
||||
if (pkt_size != *size)
|
||||
if (pkt_size > *size)
|
||||
{
|
||||
#ifdef RSSERIAL_ERROR_DEBUG
|
||||
std::cerr << "RsSerialiser::deserialise() ERROR Size mismatch(2)";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue