mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-07 14:12:43 -04:00
removed uninitialised memory read
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7239 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
61080e9816
commit
40b175ef44
1 changed files with 10 additions and 3 deletions
|
@ -124,19 +124,26 @@ void init_item(RsGxsMsgMetaData* metaMsg)
|
||||||
|
|
||||||
init_random(metaMsg->mGroupId) ;
|
init_random(metaMsg->mGroupId) ;
|
||||||
init_random(metaMsg->mMsgId) ;
|
init_random(metaMsg->mMsgId) ;
|
||||||
|
metaMsg->refcount = 1;
|
||||||
init_random(metaMsg->mThreadId) ;
|
init_random(metaMsg->mThreadId) ;
|
||||||
init_random(metaMsg->mParentId) ;
|
init_random(metaMsg->mParentId) ;
|
||||||
init_random(metaMsg->mAuthorId) ;
|
|
||||||
init_random(metaMsg->mOrigMsgId) ;
|
init_random(metaMsg->mOrigMsgId) ;
|
||||||
|
init_random(metaMsg->mAuthorId) ;
|
||||||
randString(SHORT_STR, metaMsg->mMsgName);
|
|
||||||
|
|
||||||
init_item(metaMsg->signSet);
|
init_item(metaMsg->signSet);
|
||||||
|
|
||||||
|
randString(SHORT_STR, metaMsg->mServiceString);
|
||||||
|
|
||||||
|
randString(SHORT_STR, metaMsg->mMsgName);
|
||||||
|
|
||||||
metaMsg->mPublishTs = rand()%313;
|
metaMsg->mPublishTs = rand()%313;
|
||||||
metaMsg->mMsgFlags = rand()%224;
|
metaMsg->mMsgFlags = rand()%224;
|
||||||
metaMsg->mMsgStatus = rand()%4242;
|
metaMsg->mMsgStatus = rand()%4242;
|
||||||
metaMsg->mChildTs = rand()%221;
|
metaMsg->mChildTs = rand()%221;
|
||||||
|
metaMsg->recvTS = rand()%2327 ;
|
||||||
|
|
||||||
|
init_random(metaMsg->mHash) ;
|
||||||
|
metaMsg->validated = true ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue