mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-04 04:14:24 -04:00
switched GRouter to new serialization
This commit is contained in:
parent
0d7df568b4
commit
77e809ea4b
7 changed files with 343 additions and 195 deletions
|
@ -524,7 +524,7 @@ int pqiSSLstore::readPkt(RsItem **item_out)
|
|||
int extralen = getRsItemSize(block) - blen;
|
||||
int totallen = extralen+blen;
|
||||
|
||||
if(totallen > 1024*1024)
|
||||
if(totallen > 1024*1024 || totallen<blen)
|
||||
{
|
||||
free(block);
|
||||
std::cerr << "pqiSSLstore: ERROR: trying to realloc memory for packet of length" << totallen << ", that exceeds the limit of 1MB" << std::endl ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue