mirror of
https://gitee.com/openharmony/startup_appspawn
synced 2024-11-30 02:31:30 +00:00
update standard/appspawn_msgmgr.c.
Signed-off-by: 樊景乐 <fanjingle@h-partners.com>
This commit is contained in:
parent
92d09eb580
commit
140b653115
@ -263,6 +263,9 @@ int DecodeAppSpawnMsg(AppSpawnMsgNode *message)
|
||||
uint32_t currLen = 0;
|
||||
while (currLen < bufferLen) {
|
||||
AppSpawnTlv *tlv = (AppSpawnTlv *)(message->buffer + currLen);
|
||||
if (tlv == NULL) {
|
||||
break;
|
||||
}
|
||||
APPSPAWN_CHECK(tlv->tlvLen <= (bufferLen - currLen), break,
|
||||
"Invalid tlv [%{public}d %{public}d] curr: %{public}zu",
|
||||
tlv->tlvType, tlv->tlvLen, currLen + sizeof(AppSpawnMsg));
|
||||
|
Loading…
Reference in New Issue
Block a user