From a9c40bf1d8457a98b58c08a2328a50713fd2ad14 Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 26 Nov 2014 20:07:43 +0000 Subject: [PATCH] sorted initialisation routine. Removed uninitialised memory read git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7711 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/gxs/rsgxsdata.cc | 36 +++++++++++++++++++----------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/libretroshare/src/gxs/rsgxsdata.cc b/libretroshare/src/gxs/rsgxsdata.cc index 03f1bbb19..e32943ea4 100644 --- a/libretroshare/src/gxs/rsgxsdata.cc +++ b/libretroshare/src/gxs/rsgxsdata.cc @@ -58,27 +58,37 @@ void RsGxsGrpMetaData::clear(){ mGroupId.clear(); mOrigGrpId.clear(); - mAuthorId.clear(); mGroupName.clear(); - mServiceString.clear(); - mPublishTs = 0; mGroupFlags = 0; + mPublishTs = 0; + mSignFlags = 0; + mAuthorId.clear(); + + mCircleId.clear(); + mCircleType = 0; + + signSet.TlvClear(); + keys.TlvClear(); + + mServiceString.clear(); + mAuthenFlags = 0; + mParentGrpId.clear(); + + mSubscribeFlags = 0; + mPop = 0; mMsgCount = 0; mGroupStatus = 0; mLastPost = 0; - mSubscribeFlags = 0; - signSet.TlvClear(); - keys.TlvClear(); - mCircleId.clear(); - mInternalCircle.clear(); - mOriginator.clear(); - mCircleType = 0; - mAuthenFlags = 0; - mParentGrpId.clear(); - mRecvTS = 0; mReputationCutOff = 0; + mGrpSize = 0 ; + mGroupStatus = 0 ; + mRecvTS = 0; + + mOriginator.clear(); + mInternalCircle.clear(); + mHash.clear() ; } bool RsGxsGrpMetaData::serialise(void *data, uint32_t &pktsize)