/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()
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libc/musl/include/ |
H A D | string.h | 519 * @see strnlen | wcslen 644 * The strnlen() function returns the number of characters in the string 646 * most maxlen. In doing this, strnlen() looks only at the first maxlen 655 * @retval #size_t The strnlen() function returns the number of characters in the string 663 size_t strnlen (const char *, size_t);
|
/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()
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/himedia/ |
H A D | base.c | 315 pdrv = kzalloc(sizeof(struct himedia_driver) + strnlen(name, HIMIDIA_MAX_DEV_NAME_LEN), GFP_KERNEL); in himedia_driver_register() 321 if (strncpy_s(pdrv->name, HIMIDIA_MAX_DEV_NAME_LEN, name, strnlen(name, HIMIDIA_MAX_DEV_NAME_LEN - 1)) != EOK) { in himedia_driver_register()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/tests/kutf/ |
H A D | kutf_helpers_user.c | 341 int len_remain = strnlen(recv_str, recv_sz); in kutf_helper_receive_named_val() 356 if (strnlen(recv_str, recv_sz) != 0) { in kutf_helper_receive_named_val()
|
/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()
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/ |
H A D | osal_string.c | 90 return strnlen(s, count); in osal_strnlen()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/ipa/ |
H A D | mali_kbase_ipa_simple.c | 177 if (!strnlen(model_data->tz_name, sizeof(model_data->tz_name))) {
in kbase_simple_power_model_recalculate()
|
H A D | mali_kbase_ipa_debugfs.c | 80 len = strnlen(param->addr.str, param->size - 1) + 1;
in param_string_get()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/ipa/ |
H A D | mali_kbase_ipa_simple.c | 189 if (!strnlen(model_data->tz_name, sizeof(model_data->tz_name))) { in kbase_simple_power_model_recalculate()
|
H A D | mali_kbase_ipa_debugfs.c | 82 len = strnlen(param->addr.str, param->size - 1) + 1; in param_string_get()
|
/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/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,
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/component/hifb/src/init/linux/ |
H A D | hifb_init.c | 100 len = strnlen(g_vdata, (VSYNC_LEN - 1)) + 1; in vsync_read() 214 len = strnlen(g_nowdata, (VSYNC_LEN - 1)) + 1; in pts_read()
|
/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()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ipa/ |
H A D | mali_kbase_ipa_simple.c | 306 if (!strnlen(model_data->tz_name, sizeof(model_data->tz_name))) { in kbase_simple_power_model_recalculate()
|
H A D | mali_kbase_ipa_debugfs.c | 90 len = strnlen(param->addr.str, param->size - 1) + 1; in param_string_get()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ipa/ |
H A D | mali_kbase_ipa_simple.c | 283 if (!strnlen(model_data->tz_name, sizeof(model_data->tz_name))) { in kbase_simple_power_model_recalculate()
|
H A D | mali_kbase_ipa_debugfs.c | 92 len = strnlen(param->addr.str, param->size - 1) + 1; in param_string_get()
|
/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()
|