Home
last modified time | relevance | path

Searched refs:strnlen (Results 1 - 22 of 22) sorted by relevance

/foundation/distributeddatamgr/kv_store/frameworks/native/kv_store/src/kvstore_common/
H A Dkvstore_common.c41 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 Dsoftbus_event_converter.h78 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 Dlnn_connection_addr_utils.c275 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 Dxattr.cpp35 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 Dtrans_channel_limit.c102 len = strnlen(g_noPkgNameSessionWhiteList[index], SESSION_NAME_SIZE_MAX); in IsNoPkgNameSession()
/foundation/filemanagement/dfs_service/services/cloudsyncservice/src/transport/
H A Dmessage_handler.cpp113 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 Dclient_bus_center.c106 (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 Dsoftbus_hidumper_nstack.c39 size_t dataLen = strnlen(data, SOFTBUF_NSTACK_DUMP_BUF_LEN); in SoftBufNstackDumpFunc()
/foundation/communication/wifi/wifi/frameworks/native/c_adapter/src/
H A Dwifi_c_hotspot.cpp101 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 Dwifi_c_device.cpp164 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 Dlnn_bus_center_ipc.cpp149 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 Droute_head_handler_impl.cpp276 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 Dlnn_ip_network_impl.c67 if (strnlen(ip, size) == 0 || strnlen(ip, size) == size) { in GetWifiServiceIpAddr()
/foundation/filemanagement/app_file_service/interfaces/kits/ndk/fileshare/src/
H A Doh_file_share.cpp46 auto uriLength = strnlen(policies[i].uri, policies[i].length); in ConvertPolicyInfo()
/foundation/communication/dsoftbus/core/frame/standard/init/src/
H A Dsoftbus_server_stub.cpp1550 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 Dpng_image_chunk_utils.cpp150 const size_t stringLength = strnlen(chunkData, dataLength); in FetchString()
/foundation/communication/dsoftbus/components/nstackx/fillp/src/app_lib/src/
H A Dfillp_dfx.c733 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 Dlnn_lane_link.c1488 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 Dgt_bundle_manager_service.cpp1307 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 Dserializer.c383 len = strnlen(value, MAX_IO_SIZE); in WriteString()
/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_net_builder.c852 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 Dlnn_distributed_net_ledger.c1090 if (udid != NULL && strnlen(udid, UDID_BUF_LEN) != UDID_BUF_LEN && strncpy_s(udidData, in DfxRecordLnnSetNodeOfflineEnd()

Completed in 24 milliseconds