mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
added missing size check in RsGxsRecognSerialiser
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8425 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
ad4f57d756
commit
f5843faef0
@ -574,6 +574,9 @@ bool RsGxsRecognSerialiser::serialise(RsItem *i, void *data, uint32_t *pktsi
|
||||
|
||||
RsItem *RsGxsRecognSerialiser::deserialise(void *data, uint32_t *pktsize)
|
||||
{
|
||||
if(*pktsize < getRsPktBaseSize())
|
||||
return NULL;
|
||||
|
||||
/* get the type and size */
|
||||
uint32_t rstype = getRsItemId(data);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user