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:
electron128 2015-06-13 08:03:58 +00:00
parent ad4f57d756
commit f5843faef0

View File

@ -574,6 +574,9 @@ bool RsGxsRecognSerialiser::serialise(RsItem *i, void *data, uint32_t *pktsi
RsItem *RsGxsRecognSerialiser::deserialise(void *data, uint32_t *pktsize) RsItem *RsGxsRecognSerialiser::deserialise(void *data, uint32_t *pktsize)
{ {
if(*pktsize < getRsPktBaseSize())
return NULL;
/* get the type and size */ /* get the type and size */
uint32_t rstype = getRsItemId(data); uint32_t rstype = getRsItemId(data);