/foundation/distributeddatamgr/kv_store/frameworks/native/kv_store/src/kvstore_common/ |
H A D | kvstore_common.c | 41 size_t valueLen = strnlen(value, MAX_VALUE_LEN);
in IsValidValue() 53 size_t keyLen = strnlen(key, MAX_KEY_LEN);
in IsValidKey() 113 size_t keyLen = strnlen(key, MAX_KEY_LEN);
in AddKVCache() 114 size_t valueLen = strnlen(value, MAX_VALUE_LEN);
in AddKVCache() 171 size_t valueLen = strnlen(item->value, MAX_VALUE_LEN);
in GetValueByCache()
|
/foundation/communication/dsoftbus/core/common/dfx/event/src/convert/ |
H A D | softbus_event_converter.h | 78 if (value == NULL || value[0] == '\0' || strnlen(value, PARAM_STRING_VALUE_MAX_LEN) == PARAM_STRING_VALUE_MAX_LEN) { in AssignerString() 89 if (value == NULL || value[0] == '\0' || strnlen(value, in AssignerLongString() 101 if (value == NULL || value[0] == '\0' || strnlen(value, PARAM_STRING_VALUE_MAX_LEN) == PARAM_STRING_VALUE_MAX_LEN) { in AssignerAnonymizeString()
|
/foundation/communication/dsoftbus/core/bus_center/utils/src/ |
H A D | lnn_connection_addr_utils.c | 275 if (strnlen(addr->info.ip.ip, IP_STR_MAX_LEN) == 0 || in LnnIsConnectionAddrInvalid() 276 strnlen(addr->info.ip.ip, IP_STR_MAX_LEN) == IP_STR_MAX_LEN) { in LnnIsConnectionAddrInvalid() 282 if (strnlen(addr->info.br.brMac, BT_MAC_LEN) == 0 || in LnnIsConnectionAddrInvalid() 283 strnlen(addr->info.br.brMac, BT_MAC_LEN) == BT_MAC_LEN) { in LnnIsConnectionAddrInvalid() 289 if (strnlen(addr->info.ble.bleMac, BT_MAC_LEN) == 0 || in LnnIsConnectionAddrInvalid() 290 strnlen(addr->info.ble.bleMac, BT_MAC_LEN) == BT_MAC_LEN) { in LnnIsConnectionAddrInvalid()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/ |
H A D | xattr.cpp | 35 bool isIllegalKey = strnlen(key, MAX_XATTR_SIZE + 1) > MAX_XATTR_SIZE;
in IsIllegalXattr() 39 bool isIllegalValue = strnlen(value, MAX_XATTR_SIZE + 1) > MAX_XATTR_SIZE;
in IsIllegalXattr() 95 if (setxattr(path.get(), key.get(), value.get(), strnlen(value.get(), MAX_XATTR_SIZE), 0) < 0) {
in SetSync() 215 if (setxattr(path.c_str(), key.c_str(), value.c_str(), strnlen(value.c_str(), MAX_XATTR_SIZE), 0) < 0) {
in SetAsync()
|
/foundation/communication/dsoftbus/core/transmission/trans_channel/common/src/ |
H A D | trans_channel_limit.c | 102 len = strnlen(g_noPkgNameSessionWhiteList[index], SESSION_NAME_SIZE_MAX); in IsNoPkgNameSession()
|
/foundation/filemanagement/dfs_service/services/cloudsyncservice/src/transport/ |
H A D | message_handler.cpp | 113 srcNetworkId_ = string(deviceInfo->sourceNetworkId, strnlen(deviceInfo->sourceNetworkId, NETWORK_ID_SIZE_MAX)); in UnPackData() 114 dstNetworkId_ = string(deviceInfo->tartgeNetworkId, strnlen(deviceInfo->tartgeNetworkId, NETWORK_ID_SIZE_MAX)); in UnPackData()
|
/foundation/communication/dsoftbus/sdk/bus_center/service/src/ |
H A D | client_bus_center.c | 106 (strnlen((char *)(info->capabilityData), MAX_CAPABILITYDATA_LEN) == MAX_CAPABILITYDATA_LEN))) { in PublishInfoCheck() 140 (strnlen((char *)(info->capabilityData), MAX_CAPABILITYDATA_LEN) == MAX_CAPABILITYDATA_LEN))) { in SubscribeInfoCheck() 555 size_t len = strnlen(callerId, CALLER_ID_MAX_LEN); in ShiftLNNGear() 561 strnlen(targetNetworkId, NETWORK_ID_BUF_LEN) != NETWORK_ID_BUF_LEN - 1) { in ShiftLNNGear()
|
/foundation/communication/dsoftbus/core/common/dfx/hidumper_adapter/ |
H A D | softbus_hidumper_nstack.c | 39 size_t dataLen = strnlen(data, SOFTBUF_NSTACK_DUMP_BUF_LEN); in SoftBufNstackDumpFunc()
|
/foundation/communication/wifi/wifi/frameworks/native/c_adapter/src/ |
H A D | wifi_c_hotspot.cpp | 101 if (strnlen(config->preSharedKey, WIFI_MAX_KEY_LEN) == WIFI_MAX_KEY_LEN) { in GetHotspotConfigFromC() 105 if (strnlen(config->ipAddress, WIFI_MAX_IPV4_LEN) == WIFI_MAX_IPV4_LEN) { in GetHotspotConfigFromC()
|
H A D | wifi_c_device.cpp | 164 if (strnlen(config->ssid, WIFI_MAX_SSID_LEN) == WIFI_MAX_SSID_LEN) { in ConvertDeviceConfigFromC() 174 if (strnlen(config->preSharedKey, WIFI_MAX_KEY_LEN) == WIFI_MAX_KEY_LEN) { in ConvertDeviceConfigFromC()
|
/foundation/communication/dsoftbus/core/bus_center/ipc/standard/src/ |
H A D | lnn_bus_center_ipc.cpp | 149 uint32_t pkgNameLen = strnlen(pkgName, PKG_NAME_SIZE_MAX); in OnRefreshDeviceFound() 382 LNN_CHECK_AND_RETURN_RET_LOGE(strnlen(pkgName, PKG_NAME_SIZE_MAX) < PKG_NAME_SIZE_MAX, SOFTBUS_INVALID_PKGNAME, 402 LNN_CHECK_AND_RETURN_RET_LOGE(strnlen(pkgName, PKG_NAME_SIZE_MAX) < PKG_NAME_SIZE_MAX, SOFTBUS_INVALID_PKGNAME,
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/session_manager/ |
H A D | route_head_handler_impl.cpp | 276 std::string(devicePair->sourceId, strnlen(devicePair->sourceId, SessionDevicePair::MAX_DEVICE_ID));
in UnPackDataBody() 278 std::string(devicePair->targetId, strnlen(devicePair->targetId, SessionDevicePair::MAX_DEVICE_ID));
in UnPackDataBody()
|
/foundation/communication/dsoftbus/core/bus_center/lnn/net_buscenter/src/ |
H A D | lnn_ip_network_impl.c | 67 if (strnlen(ip, size) == 0 || strnlen(ip, size) == size) { in GetWifiServiceIpAddr()
|
/foundation/filemanagement/app_file_service/interfaces/kits/ndk/fileshare/src/ |
H A D | oh_file_share.cpp | 46 auto uriLength = strnlen(policies[i].uri, policies[i].length); in ConvertPolicyInfo()
|
/foundation/communication/dsoftbus/core/frame/standard/init/src/ |
H A D | softbus_server_stub.cpp | 1550 if (pkgName == nullptr || strnlen(pkgName, PKG_NAME_SIZE_MAX) >= PKG_NAME_SIZE_MAX) { in ShiftLNNGearInner() 1557 if (callerId == nullptr || strnlen(callerId, CALLER_ID_MAX_LEN) >= CALLER_ID_MAX_LEN) { in ShiftLNNGearInner() 1563 if (targetNetworkId == nullptr || strnlen(targetNetworkId, NETWORK_ID_BUF_LEN) != NETWORK_ID_BUF_LEN - 1) { in ShiftLNNGearInner() 1586 if (pkgName == nullptr || strnlen(pkgName, PKG_NAME_SIZE_MAX) >= PKG_NAME_SIZE_MAX) { in SyncTrustedRelationShipInner()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/ |
H A D | png_image_chunk_utils.cpp | 150 const size_t stringLength = strnlen(chunkData, dataLength); in FetchString()
|
/foundation/communication/dsoftbus/components/nstackx/fillp/src/app_lib/src/ |
H A D | fillp_dfx.c | 733 size_t len = strnlen(optArgs, FILLP_DFX_DUMP_MAX_OPT_ARG_LEN + 1); in IsCommonOptArgLegal()
|
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/src/ |
H A D | lnn_lane_link.c | 1488 if (strnlen(linkInfo->linkInfo.wlan.connInfo.addr, sizeof(linkInfo->linkInfo.wlan.connInfo.addr)) == 0 || in CreateWlanLinkInfo() 1489 strnlen(linkInfo->linkInfo.wlan.connInfo.addr, in CreateWlanLinkInfo()
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | gt_bundle_manager_service.cpp | 1307 if (memcpy_s(app->filePath, sizeof(app->filePath), filePath, strnlen(filePath, MAX_APP_FILE_PATH_LEN)) != 0) { in InsertPreAppInfo()
|
/foundation/communication/ipc/ipc/native/c/manager/src/ |
H A D | serializer.c | 383 len = strnlen(value, MAX_IO_SIZE); in WriteString()
|
/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_net_builder.c | 852 uint32_t addrLen = (uint32_t)strnlen((const char *)msg, size); in OnReceiveNodeAddrChangedMsg()
|
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/ |
H A D | lnn_distributed_net_ledger.c | 1090 if (udid != NULL && strnlen(udid, UDID_BUF_LEN) != UDID_BUF_LEN && strncpy_s(udidData, in DfxRecordLnnSetNodeOfflineEnd()
|