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:
zhangyao 2023-12-05 02:25:21 +00:00
parent 33eaee532f
commit 63626cc6ba

View File

@ -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;
}