Searched refs:dirBuf (Results 1 - 2 of 2) sorted by relevance
/base/hiviewdfx/blackbox_lite/ |
H A D | blackbox_core.c | 50 static void GetDirName(char *dirBuf, unsigned int dirBufSize, const char *path) in GetDirName() argument 52 if (dirBuf == NULL || dirBufSize == 0 || path == NULL) { in GetDirName() 53 BBOX_PRINT_ERR("dirBuf: %p, dirBufSize: %u, path: %p!\n", dirBuf, dirBufSize, path); in GetDirName() 62 (void)memset_s(dirBuf, dirBufSize, 0, dirBufSize); in GetDirName() 63 if (strncpy_s(dirBuf, dirBufSize - 1, path, end - path + strlen("/")) != EOK) { in GetDirName() 64 BBOX_PRINT_ERR("strncpy_s failed or the dirBuf is not enough!\n"); in GetDirName()
|
/base/security/appverify/interfaces/innerkits/appverify_lite/src/ |
H A D | app_verify_hap.c | 256 char *dirBuf = APPV_MALLOC(centralDirSize); in ComputerCoreDirHash() local 257 P_NULL_RETURN_WTTH_LOG(dirBuf); in ComputerCoreDirHash() 259 int32_t len = read(fp, dirBuf, sizeof(char) * centralDirSize); in ComputerCoreDirHash() 262 APPV_FREE(dirBuf); in ComputerCoreDirHash() 265 int32_t ret = ComputeBlockHash(dirBuf, centralDirSize, digestAlgorithm, chunkDigest, offset); in ComputerCoreDirHash() 266 (void)memset_s(dirBuf, centralDirSize, 0, centralDirSize); in ComputerCoreDirHash() 267 APPV_FREE(dirBuf); in ComputerCoreDirHash()
|
Completed in 2 milliseconds