Home
last modified time | relevance | path

Searched refs:dirBuf (Results 1 – 2 of 2) sorted by relevance

/base/security/appverify/interfaces/innerkits/appverify_lite/src/
Dapp_verify_hap.c257 char *dirBuf = APPV_MALLOC(centralDirSize); in ComputerCoreDirHash() local
258 P_NULL_RETURN_WTTH_LOG(dirBuf); in ComputerCoreDirHash()
260 int len = read(fp, dirBuf, sizeof(char) * centralDirSize); in ComputerCoreDirHash()
263 APPV_FREE(dirBuf); in ComputerCoreDirHash()
266 int ret = ComputeBlockHash(dirBuf, centralDirSize, digestAlgorithm, chunkDigest, offset); in ComputerCoreDirHash()
267 (void)memset_s(dirBuf, centralDirSize, 0, centralDirSize); in ComputerCoreDirHash()
268 APPV_FREE(dirBuf); in ComputerCoreDirHash()
/base/hiviewdfx/blackbox/
Dblackbox_core.c50 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()