mirror of
https://gitee.com/openharmony/security_permission_lite
synced 2024-11-27 08:50:47 +00:00
Description: updata user guide
IssueNo:https://gitee.com/openharmony/security_permission_lite/issues/I8LSUN Feature or Bugfix: Bugfix Binary Source:No Signed-off-by: zhangyao<zhangyao114@huawei.com>
This commit is contained in:
parent
33eaee532f
commit
63626cc6ba
@ -212,6 +212,7 @@ static int ParsePermissions(const char *jsonStr, PermissionSaved **perms, int *p
|
||||
cJSON *array = cJSON_GetObjectItem(root, FIELD_PERMISSION);
|
||||
int pSize = cJSON_GetArraySize(array);
|
||||
if (pSize > PERMISSION_NUM_MAX) {
|
||||
cJSON_Delete(root);
|
||||
return PERM_ERRORCODE_JSONPARSE_FAIL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user