Searched refs:allPathSize (Results 1 - 2 of 2) sorted by relevance
/base/startup/appspawn/modules/sandbox/ |
H A D | appspawn_sandbox.c | 552 size_t allPathSize = strlen(rootPath) + strlen(basePath) + 1 + USER_ID_SIZE + bundleNameLen; in IsUnlockStatus() local 553 char *path = (char *)malloc(sizeof(char) * allPathSize); in IsUnlockStatus() 555 int len = sprintf_s(path, allPathSize, "%s%u%s%s", rootPath, uid, basePath, bundleName); in IsUnlockStatus() 556 APPSPAWN_CHECK(len > 0 && ((size_t)len < allPathSize), free(path); return true, "Failed to get base path"); in IsUnlockStatus() 575 size_t allPathSize = strlen(rootPath) + strlen(targetPath) + strlen(bundleName) + 2; in MountDir() local 576 allPathSize += USER_ID_SIZE; in MountDir() 577 char *path = (char *)malloc(sizeof(char) * (allPathSize)); in MountDir() 579 int len = sprintf_s(path, allPathSize, "%s%u/%s%s", rootPath, info->uid / userIdBase, bundleName, targetPath); in MountDir() 580 APPSPAWN_CHECK(len > 0 && ((size_t)len < allPathSize), free(path); in MountDir()
|
H A D | sandbox_utils.cpp | 1821 size_t allPathSize = strlen(rootPath) + strlen(basePath) + 1 + USER_ID_SIZE + bundleNameLen; 1822 char *path = reinterpret_cast<char *>(malloc(sizeof(char) * allPathSize)); 1824 int len = sprintf_s(path, allPathSize, "%s%u%s%s", rootPath, uid, basePath, bundleName); 1825 APPSPAWN_CHECK(len > 0 && ((size_t)len < allPathSize), free(path); 1847 size_t allPathSize = strlen(rootPath) + strlen(targetPath) + strlen(bundleName) + 2; 1848 allPathSize += USER_ID_SIZE; 1849 char *path = reinterpret_cast<char *>(malloc(sizeof(char) * (allPathSize))); 1851 int len = sprintf_s(path, allPathSize, "%s%u/%s%s", rootPath, info->uid / userIdBase, bundleName, targetPath); 1852 APPSPAWN_CHECK(len > 0 && ((size_t)len < allPathSize), free(path);
|
Completed in 6 milliseconds