| /base/startup/appspawn/modules/sandbox/ |
| H A D | appspawn_sandbox.c | 130 len = sprintf_s(buffer, bufferLen, "%s/%d", sandbox->rootPath, uid); in BuildRootPath() 137 len = sprintf_s(buffer + currLen, bufferLen - currLen, "%d%s", in BuildRootPath() 140 len = sprintf_s(buffer + currLen, bufferLen - currLen, "%d", uid); in BuildRootPath() 309 int ret = sprintf_s(options, sizeof(options), "fd=%d," in SandboxMountFusePath() 405 int len = sprintf_s(options, OPTIONS_MAX_LEN, "%s%s%d", args->options, SHAREFS_OPTION_USER, info->uid / UID_BASE); in SetMountArgsOption() 407 APPSPAWN_LOGE("sprintf_s failed"); in SetMountArgsOption() 555 int len = sprintf_s(path, allPathSize, "%s%u%s%s", rootPath, uid, basePath, bundleName); in IsUnlockStatus() 579 int len = sprintf_s(path, allPathSize, "%s%u/%s%s", rootPath, info->uid / userIdBase, bundleName, targetPath); in MountDir() 908 int len = sprintf_s(path, sizeof(path), "%s%s", rootPath, SANDBOX_STAMP_FILE_SUFFIX); in IsSandboxMounted() 925 int len = sprintf_s(pat in SetSandboxMounted() [all...] |
| /base/security/asset/frameworks/js/napi/inc/ |
| H A D | asset_napi_check.h | 33 if ((sprintf_s(msg, MAX_MESSAGE_LEN, format, ##arg)) == -1) { \ 34 LOGE("[FATAL][NAPI]Failed to create message string, truncation occurred when sprintf_s."); \
|
| /base/security/device_auth/test/unittest/tdd_framework/tdd_helper/memory_monitor/src/ |
| H A D | memory_monitor.cpp | 76 if (sprintf_s(strLine, MALLOC_MAX_LINE_STR_LEN, "%d", nLine) <= 0) { in HcMonitorMalloc()
|
| /base/startup/init/services/begetctl/ |
| H A D | dump_service.c | 101 BEGET_ERROR_CHECK(sprintf_s(cmd, serviceNameLen, "%s#%s", argv[1], argv[2]) >= 0, free(cmd); in main_cmd()
|
| H A D | begetctl_cmd.c | 44 int ret = sprintf_s(value, sizeof(value) - 1, "%s ", cmdName); in HandleCmd()
|
| /base/startup/init/services/param/linux/ |
| H A D | param_message.c | 35 ret = sprintf_s(addr.sun_path, sizeof(addr.sun_path) - 1, "%s", servername);
in ConnectServer() 36 PARAM_CHECK(ret > EOK, return -1, "Failed to sprintf_s server address");
in ConnectServer()
|
| /base/startup/init/ueventd/standard/ |
| H A D | ueventd_parameter.c | 92 int len = sprintf_s(paramName, sizeof(paramName), "startup.uevent.%s", config->parameter); in ThreadRun()
|
| /base/startup/appspawn/modules/asan/ |
| H A D | asan_detector.c | 107 int len = sprintf_s(wrapBundleNameKey, WRAP_VALUE_MAX_LENGTH, "wrap.%s", bundleName); in CheckSupportColdStart()
|
| /base/update/updateservice/services/core/ability/utils/src/ |
| H A D | sha256_utils.cpp | 147 int result = sprintf_s(sha256Result + deviation, (componentIdLen - deviation), "%02x", digest[i]); in TransDigestToSha256Result()
|
| /foundation/systemabilitymgr/samgr_lite/samgr_client/source/ |
| H A D | remote_register_rpc.c | 56 (void)sprintf_s(saNameStr, SA_NAME_NUM * MAX_NAME_LEN + SA_NAME_NUM, "%s#%s", service, feature?feature:"");
in SAMGR_RegisterServiceApi()
|
| /foundation/communication/ipc/services/dbinder/c/src/ |
| H A D | dbinder_stub.c | 56 if (sprintf_s(sessionName, sessionNameLen + 1, "DBinder%d_%d", uid, pid) == -1) { in CreateDatabusName()
|
| /foundation/distributeddatamgr/kv_store/frameworks/native/kv_store/src/kvstore_impl_hal/ |
| H A D | kv_store.c | 81 if (sprintf_s(value, KV_SUM_INDEX, "%d", num) < 0) {
in SetCurrentItem()
|
| /foundation/distributedhardware/distributed_camera/common/src/utils/ |
| H A D | anonymous_string.cpp | 85 int32_t secRet = sprintf_s(tempBuffer, INT32_STRING_LENGTH, "%d", value); in GetAnonyInt32()
|
| /kernel/liteos_a/testsuites/unittest/container/smoke/ |
| H A D | It_pid_container_031.cpp | 67 ret = sprintf_s(targetpath, BUF_SIZE, "/proc/%d/container/pid", childPid); in ChildFun()
|
| /test/xts/device_attest_lite/test/tdd/gtest/src/ |
| H A D | attest_tdd_data_transfer.c | 113 if (sprintf_s(tempBufPtr, outputSize - offsetLength, "%u", input[i]) <= 0) { in AttestBinaryToSerial()
|
| /test/xts/hats/kernel/syscalls/fileio/mkdirat/ |
| H A D | MkdiratApiTest.cpp | 75 int num = sprintf_s(path, MAX_LEN, "%s/%s", OPEN_API_TEST_PATH, testPath); in HWTEST_F()
|
| /test/xts/hats/kernel/posix_interface/interface_gn/utils/ |
| H A D | libfs.cpp | 62 size_t rt = sprintf_s(subDir, sizeof(subDir), "%s/%s", dirname, fname.c_str());
in RemoveDir()
|
| /third_party/lz4/programs/ |
| H A D | platform.h | 36 # define snprintf sprintf_s /* snprintf unsupported by Visual <= 2013 */
|
| /foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/hardware/ |
| H A D | heif_hw_decoder.cpp | 246 ret = sprintf_s(inFilePath, sizeof(inFilePath), "%s/in_%s_%ux%u_grid_%ux%u_%ux%u.bin", in DumpSingleInput() 250 ret = sprintf_s(inFilePath, sizeof(inFilePath), "%s/in_%s_%ux%u_nogrid.bin", in DumpSingleInput() 417 ret = sprintf_s(outputFilePath, sizeof(outputFilePath), "%s/out_%s_%ux%u_grid_%ux%u_%ux%u.bin", in DumpOutput() 421 ret = sprintf_s(outputFilePath, sizeof(outputFilePath), "%s/out_%s_%ux%u_nogrid.bin", in DumpOutput()
|
| /base/security/device_auth/services/legacy/authenticators/src/account_related/creds_manager/ |
| H A D | sym_token_manager.c | 70 if (sprintf_s(tokenPath, pathBufferLen, "%s/%d/deviceauth/account/account_data_sym.dat", in GetTokensFilePathCe() 87 writeByteNum = sprintf_s(tokenPath, pathBufferLen, "%s/account_data_sym.dat", beginPath); in GetTokensFilePathDe() 89 writeByteNum = sprintf_s(tokenPath, pathBufferLen, "%s/account_data_sym%d.dat", beginPath, osAccountId); in GetTokensFilePathDe() 92 LOGE("sprintf_s fail!"); in GetTokensFilePathDe()
|
| /base/startup/init/interfaces/innerkits/fs_manager/ |
| H A D | fstab_mount.c | 312 int len = sprintf_s(sizeStr, RESIZE_BUFFER_SIZE, "%llu", realSize); in DoResizeF2fs() 357 int len = sprintf_s(sizeStr, RESIZE_BUFFER_SIZE, "%lluM", size); in DoResizeExt() 594 BEGET_ERROR_CHECK(sprintf_s(buffer, sizeof(buffer), "%s_%c", item->deviceName, 'a' + slot - 1) > 0, in AdjustPartitionNameByPartitionSlot()
|
| /foundation/multimedia/av_codec/services/engine/codec/video/hcodec/ |
| H A D | hcodec_dfx.cpp | 390 ret = sprintf_s(name, sizeof(name), "%s/%s_%dx%d(%dx%d)_fmt%s.%s", in DumpSurfaceBuffer() 394 ret = sprintf_s(name, sizeof(name), "%s/%s_%" PRIu64 "_%dx%d(%d)_fmt%s_pts%" PRId64 "_seq%u.%s", in DumpSurfaceBuffer() 461 int ret = sprintf_s(name, sizeof(name), "%s/%s.bin", DUMP_PATH, prefix.c_str()); in DumpLinearBuffer() 463 LOGW("sprintf_s failed"); in DumpLinearBuffer()
|
| /foundation/communication/dsoftbus/sdk/transmission/trans_channel/proxy/src/ |
| H A D | client_trans_proxy_file_helper.c | 338 ret = sprintf_s(recvFullPath, destFullPathLength + 1, "%s/%s", recvRootDir, filePath); in GetFullRecvPath() 340 ret = sprintf_s(recvFullPath, destFullPathLength + 1, "%s%s", recvRootDir, filePath); in GetFullRecvPath() 416 if (sprintf_s(recvAbsPath, pathSize, "%s/%s", absFullDir, fileName) < 0) { in GetAbsFullPath() 417 TRANS_LOGE(TRANS_FILE, "sprintf_s filename error"); in GetAbsFullPath()
|
| /base/hiviewdfx/hidumper/services/native/src/ |
| H A D | raw_param.cpp | 55 if (sprintf_s(argValues_[i]->value, SINGLE_ARG_MAXLEN, "%s", Str16ToStr8(args[i]).c_str()) < 0) { in Init()
|
| /base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
| H A D | cert_manager_file.c | 138 if (sprintf_s((char *)fNames[i].data, nameSize, "%s", dire.fileName) < 0) { in GetFileNames()
|