| /test/xts/device_attest/services/core/utils/ |
| H A D | attest_utils.c | 232 if (sprintf_s(buf, sizeof(buf), "%02X", hash[i]) < 0) { in Sha256Value()
|
| /test/xts/device_attest_lite/services/core/utils/ |
| H A D | attest_utils.c | 234 if (sprintf_s(buf, sizeof(buf), "%02X", hash[i]) < 0) { in Sha256Value()
|
| /third_party/glslang/glslang/Include/ |
| H A D | Common.h | 73 #define snprintf sprintf_s
|
| /third_party/bounds_checking_function/include/ |
| H A D | securec.h | 13 * such as memcpy_s, strcpy_s, wcscpy_s,strcat_s, strncat_s, sprintf_s, scanf_s, and so on. 237 * Description: The sprintf_s function is equivalent to the sprintf function except for the parameter destMax 245 SECUREC_API int sprintf_s(char *strDest, size_t destMax, const char *format, ...) SECUREC_ATTRIBUTE(3, 4); 504 * Description: The swprintf_s function is the wide-character equivalent of the sprintf_s function
|
| /test/xts/acts/kernel_lite/net_posix/src/ |
| H A D | ActsNetTest.cpp | 144 rst = sprintf_s(dataBuf, sizeof(dataBuf), sendMsgList[i], clnFd); in CommTcpClientTask() 146 printf("[@@@][comm client]sprintf_s error!\n"); in CommTcpClientTask() 487 sprintf_s(dataBuf, sizeof(dataBuf), "server timeout:%d", timeout); in TcpServerForFork() 1255 ret = sprintf_s(rst1, sizeof(rst1), "%.2x:%.2x:%.2x:%.2x:%.2x:%.2x", *macPtr, *(macPtr+1), in HWTEST_F() 1257 EXPECT_EQ(strlen(rst1), (unsigned int)ret) << "sprintf_s error"; in HWTEST_F() 1435 int ret = sprintf_s(atonByteRst, sizeof(atonByteRst), "%u.%u.%u.%u.%u.%u", in HWTEST_F() 1481 ret = sprintf_s(byteRst, sizeof(byteRst), "%u.%u.%u.%u.%u.%u", in HWTEST_F() 1486 ret = sprintf_s(byteRst, sizeof(byteRst), "%u.%u.%u.%u.%u.%u", in HWTEST_F()
|
| /foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
| H A D | gt_bundle_manager_service.cpp | 656 if (sprintf_s(appPath, len, "%s/%s", appDir, bundleName) < 0) { in ScanThirdApp() 902 if (sprintf_s(path, len + 1, "%s/%s", INSTALL_PATH, res->bundleName) < 0) { in UpdateBundleInfoList() 903 HILOG_ERROR(HILOG_MODULE_AAFWK, "[BMS] change bundle res failed! because sprintf_s fail"); in UpdateBundleInfoList() 1274 if (sprintf_s(appPath, len, "%s/%s", appDir, fileName) < 0) { in QueryPreAppInfo()
|
| H A D | gt_bundle_parser.cpp | 157 if (sprintf_s(profilePath, PATH_LENGTH, "%s/%s", path, PROFILE_NAME) < 0) { in ParseHapProfile() 822 if (sprintf_s(installedPath, len, "%s/%s", INSTALL_PATH, bundleProfile.bundleName) < 0) { in SaveBundleInfo() 897 if (sprintf_s(dataPath, len, "%s/%s", DATA_PATH, bundleProfile.bundleName) < 0) { in SetBundleInfo()
|
| /foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
| H A D | skia_canvas.cpp | 204 if (sprintf_s(buf, sizeof(buf), "para%lu", i) != -1) { in AddSdfPara() 213 if (sprintf_s(buf, sizeof(buf), "transpara%lu", i) != -1) { in AddSdfPara() 224 if (sprintf_s(buf, sizeof(buf), "colpara%lu", i) != -1) { in AddSdfPara()
|
| /foundation/multimodalinput/input/service/device_manager/src/ |
| H A D | input_device_manager.cpp | 362 sprintf_s(vid, sizeof(vid), "%04X", deviceVendor); in GetInputIdentification() 363 sprintf_s(pid, sizeof(pid), "%04X", deviceProduct); in GetInputIdentification()
|
| /foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/utils/ |
| H A D | wifi_direct_utils.cpp | 88 sprintf_s(buf, sizeof(buf), "%02x", byte); in ToString() 254 if (sprintf_s(buf, MAC_BYTE_HEX_SIZE, "%02x:", byte) < 0) { in MacArrayToString()
|
| /test/xts/acts/kernel_lite/ipc_posix/message_queue/ |
| H A D | IpcMqExceptionTest.cpp | 39 sprintf_s(qName, sizeof(qName), "testMqOpenEEXIST_%d", GetRandom(10000));
in HWTEST_F() 64 sprintf_s(qName, sizeof(qName), "testMqOpenEINVAL_%d", GetRandom(10000));
in HWTEST_F()
|
| /test/xts/hats/hdf/camera/cameraBenchmarkTest/v1_2/src/ |
| H A D | benchmark_common.cpp | 42 int ret = sprintf_s(mkdirCmd, sizeof(mkdirCmd) / sizeof(mkdirCmd[0]), in DumpImageFile() 48 ret = sprintf_s(path, sizeof(path) / sizeof(path[0]), "data/stream-%d/%lld.%s", in DumpImageFile()
|
| /test/xts/hats/hdf/camera/cameraHdi/v4l2/src/ |
| H A D | usb_camera_test_mult.cpp | 164 if (sprintf_s(path, sizeof(path), "%spicture222_%ld.jpeg", prefix, start.tv_usec) < 0) { in StoreImage() 165 CAMERA_LOGE("sprintf_s error .....\n"); in StoreImage() 206 if (sprintf_s(path, sizeof(path), "%svideo222%ld.h264", prefix, seconds) < 0) { in OpenVideoFile()
|
| /foundation/multimedia/av_codec/test/moduletest/demuxer/src/ |
| H A D | net_test.cpp | 396 sprintf_s(file, len, "/data/test/media/16/%d_wav_audio_test_202406290859.wav", i); in HWTEST_F() 540 sprintf_s(file, len, "/data/test/media/16/%d_webvtt_test.vtt", i); in HWTEST_F() 636 sprintf_s(file, len, "/data/test/media/16/%d_subtitle_webvtt_en_GB_15.mp4", i); in HWTEST_F() 824 sprintf_s(file, len, "/data/test/media/16/%d_subtitle_webvtt_zh_CN_14.mp4", i); in HWTEST_F()
|
| /foundation/communication/dsoftbus/tests/sdk/transmission/session/ |
| H A D | client_trans_session_manager_test.cpp | 294 ret = sprintf_s(sessionNme, SESSION_NAME_SIZE_MAX, "%s%d", g_sessionName, i); in HWTEST_F() 296 ret = sprintf_s(pkgName, PKG_NAME_SIZE_MAX, "%s%d", g_pkgName, i); in HWTEST_F() 305 ret = sprintf_s(sessionNme, SESSION_NAME_SIZE_MAX, "%s%d", g_sessionName, i); in HWTEST_F() 330 ret = sprintf_s(sessionName, SESSION_NAME_SIZE_MAX, "%s%d", g_sessionName, i); in HWTEST_F()
|
| /test/xts/acts/hiviewdfx/hiappeventtest/hiappeventcpptest/ |
| H A D | HiAppEventCPPTest.cpp | 670 sprintf_s(strs[i], num,"hello_world_%d",i); in HWTEST_F() 1032 sprintf_s(strs[i], num,"hello_world_%d",i); in HWTEST_F() 1125 sprintf_s(s, sizeof(s),"app_event_%d%02d%02d.log", 1900 + p->tm_year, 1 + p->tm_mon, p->tm_mday); in HWTEST_F() 1175 sprintf_s(s, sizeof(s),"app_event_%d%02d%02d.log", 1900 + p->tm_year, 1 + p->tm_mon, p->tm_mday); in HWTEST_F()
|
| /base/hiviewdfx/hidumper/frameworks/native/ |
| H A D | dump_utils.cpp | 343 int ret = sprintf_s(pathPid, PATH_MAX, "/proc/%u", pid); in CheckProcessAlive()
|
| /base/security/asset/frameworks/js/napi/src/ |
| H A D | asset_napi_common.cpp | 53 (void)sprintf_s(msg, MAX_MESSAGE_LEN, "AssetTag(0x%08x) " message, tag); \
|
| /base/security/appverify/interfaces/innerkits/appverify/src/util/ |
| H A D | hap_cert_verify_openssl_utils.cpp | 127 if (sprintf_s(buff, sizeof(buff), "%02X", hash[index]) < 0) {
in GetFingerprintBase64FromPemCert()
|
| /base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
| H A D | cert_manager_storage.c | 196 if (sprintf_s(path, CERT_MAX_PATH_LEN, "%s", pathPtr) < 0) { in CmGetCertFilePath()
|
| /base/security/device_auth/common_lib/impl/src/ |
| H A D | json_utils.c | 522 if (sprintf_s(buffer, sizeof(buffer), "%" PRId64, value) <= 0) {
in AddInt64StringToJson()
|
| /base/security/device_auth/services/frameworks/src/hiview_adapter/ |
| H A D | performance_dumper.c | 262 if (sprintf_s(reqIdStr, MAX_REQUEST_ID_LEN, "%lld", performData->reqId) <= 0) { in DumpPerformData()
|
| /base/security/device_auth/test/fuzztest/session_manager/session/v2/expand_sub_session/expand_process_lib/savetrustedinfo_fuzzer/ |
| H A D | savetrustedinfo_fuzzer.cpp | 74 if (sprintf_s(strBuf, sizeof(strBuf) - 1, "rm -rf %s", path) < 0) { in RemoveDir()
|
| /base/security/device_auth/test/unittest/deviceauth/source/ |
| H A D | deviceauth_standard_member_test.cpp | 148 if (sprintf_s(strBuf, sizeof(strBuf) - 1, "rm -rf %s", path) < 0) { in RemoveDir()
|
| H A D | json_utils_mock.c | 555 if (sprintf_s(buffer, sizeof(buffer), "%" PRId64, value) <= 0) { in AddInt64StringToJson()
|