Home
last modified time | relevance | path

Searched refs:strncpy (Results 1 – 25 of 1035) sorted by relevance

12345678910>>...42

/OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-support/lowpan-tools/lowpan-tools/
H A D0001-Fix-potential-string-truncation-in-strncpy.patch4 Subject: [PATCH] Fix potential string truncation in strncpy()
8 error: 'strncpy' specified bound 16 equals destination size
32 - strncpy(req.ifr_name, iface, IF_NAMESIZE);
33 + strncpy(req.ifr_name, iface, IF_NAMESIZE - 1);
46 - strncpy(req.ifr_name, iface, IFNAMSIZ);
47 + strncpy(req.ifr_name, iface, IFNAMSIZ - 1);
61 - strncpy(req.ifr_name, argv[1] ?: "wpan0", IF_NAMESIZE);
62 + strncpy(req.ifr_name, argv[1] ?: "wpan0", IF_NAMESIZE - 1);
75 - strncpy(req.ifr_name, argv[1] ?: "wpan0", IF_NAMESIZE);
76 + strncpy(req.ifr_name, argv[1] ?: "wpan0", IF_NAMESIZE - 1);
[all …]
H A D0001-coordinator-Fix-strncpy-range-warning.patch4 Subject: [PATCH] coordinator: Fix strncpy range warning
7 error: 'strncpy' specified bound 4096 equals destination size [-Werror=stringop-truncation]
22 - strncpy(pname, argv[0], PATH_MAX);
23 + strncpy(pname, argv[0], PATH_MAX - 1);
/OK3568_Linux_fs/external/camera_engine_rkaiq/rk_stream/stream_cfg/
H A DMediaInfo.cpp270 strncpy(ispp_info[index].media_dev_path, devpath, sizeof(ispp_info[index].media_dev_path)-1); in get_ispp_subdevs()
276strncpy(ispp_info[index].pp_input_image_path, entity_name, sizeof(ispp_info[index].pp_input_image_… in get_ispp_subdevs()
283strncpy(ispp_info[index].pp_m_bypass_path, entity_name, sizeof(ispp_info[index].pp_m_bypass_path)-… in get_ispp_subdevs()
290strncpy(ispp_info[index].pp_scale0_path, entity_name, sizeof(ispp_info[index].pp_scale0_path)-1); in get_ispp_subdevs()
297strncpy(ispp_info[index].pp_scale1_path, entity_name, sizeof(ispp_info[index].pp_scale1_path)-1); in get_ispp_subdevs()
304strncpy(ispp_info[index].pp_scale2_path, entity_name, sizeof(ispp_info[index].pp_scale2_path)-1); in get_ispp_subdevs()
341strncpy(ispp_info[index].pp_fec_params_path, entity_name, sizeof(ispp_info[index].pp_fec_params_pa… in get_ispp_subdevs()
348strncpy(ispp_info[index].pp_dev_path, entity_name, sizeof(ispp_info[index].pp_dev_path)-1); in get_ispp_subdevs()
421 strncpy(isp_info[index].media_dev_path, devpath, sizeof(isp_info[index].media_dev_path)-1); in get_isp_subdevs()
427strncpy(isp_info[index].isp_dev_path, entity_name, sizeof(isp_info[index].isp_dev_path)-1); in get_isp_subdevs()
[all …]
/OK3568_Linux_fs/external/xserver/hw/xwin/
H A Dwinprefsyacc.y266 strncpy (pref.iconDirectory, path, PATH_MAX); in SetIconDirectory()
273 strncpy (pref.defaultIconName, fname, NAME_MAX); in SetDefaultIcon()
280 strncpy (pref.trayIconName, fname, NAME_MAX); in SetTrayIcon()
287 strncpy (pref.rootMenuName, menuname, MENU_MAX); in SetRootMenu()
294 strncpy (pref.defaultSysMenuName, menuname, MENU_MAX); in SetDefaultSysMenu()
304 strncpy(menu.menuName, menuname, MENU_MAX); in OpenMenu()
317 strncpy (menu.menuItem[menu.menuItems].text, text, MENU_MAX); in AddMenuLine()
322 strncpy(menu.menuItem[menu.menuItems].param, param, PARAM_MAX); in AddMenuLine()
369 strncpy(pref.icon[pref.iconItems].match, matchstr, MENU_MAX); in AddIconLine()
372 strncpy(pref.icon[pref.iconItems].iconFile, iconfile, PATH_MAX+NAME_MAX+1); in AddIconLine()
[all …]
H A Dwinmultiwindowclass.c86 strncpy((*res_name), prop->data, len_name); in winMultiWindowGetClassHint()
104 strncpy((*res_class), ((char *) prop->data) + 1 + len_name, len_class); in winMultiWindowGetClassHint()
178 strncpy((*res_role), prop->data, len_role); in winMultiWindowGetWindowRole()
290 strncpy((*wmName), prop->data, len_name); in winMultiWindowGetWMName()
H A Dwinprefsyacc.c1830 strncpy (pref.iconDirectory, path, PATH_MAX); in SetIconDirectory()
1837 strncpy (pref.defaultIconName, fname, NAME_MAX); in SetDefaultIcon()
1844 strncpy (pref.trayIconName, fname, NAME_MAX); in SetTrayIcon()
1851 strncpy (pref.rootMenuName, menuname, MENU_MAX); in SetRootMenu()
1858 strncpy (pref.defaultSysMenuName, menuname, MENU_MAX); in SetDefaultSysMenu()
1868 strncpy(menu.menuName, menuname, MENU_MAX); in OpenMenu()
1881 strncpy (menu.menuItem[menu.menuItems].text, text, MENU_MAX); in AddMenuLine()
1886 strncpy(menu.menuItem[menu.menuItems].param, param, PARAM_MAX); in AddMenuLine()
1933 strncpy(pref.icon[pref.iconItems].match, matchstr, MENU_MAX); in AddIconLine()
1936 strncpy(pref.icon[pref.iconItems].iconFile, iconfile, PATH_MAX+NAME_MAX+1); in AddIconLine()
[all …]
/OK3568_Linux_fs/buildroot/package/wireless_tools/
H A D0001-remove-bzero.patch14 strncpy(ifr.ifr_name, victimname, IFNAMSIZ);
15 strncpy(ifr.ifr_newname, autoname, IFNAMSIZ);
23 strncpy(ifr.ifr_name, oldname, IFNAMSIZ);
24 strncpy(ifr.ifr_newname, newname, IFNAMSIZ);
32 strncpy(ifr.ifr_name, ifname, IFNAMSIZ);
43 strncpy(ifr.ifr_name, ifname, IFNAMSIZ);
54 strncpy(ifr.ifr_name, ifname, IFNAMSIZ);
/OK3568_Linux_fs/kernel/arch/alpha/lib/
H A Dstrncpy.S21 .globl strncpy symbol
22 .ent strncpy
23 strncpy: label
82 .end strncpy
83 EXPORT_SYMBOL(strncpy)
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/xcore/
H A Dsmart_buffer_priv.cpp36 strncpy(str, "RAW_BUFFER", SMTBUF_NAME_STR_LEN); in buf_type_to_str()
39 strncpy(str, "SPIMG_BUFFER", SMTBUF_NAME_STR_LEN); in buf_type_to_str()
42 strncpy(str, "ISPGAIN_BUFFER", SMTBUF_NAME_STR_LEN); in buf_type_to_str()
45 strncpy(str, "NRIMG_BUFFER", SMTBUF_NAME_STR_LEN); in buf_type_to_str()
48 strncpy(str, "GAINKG_BUFFER", SMTBUF_NAME_STR_LEN); in buf_type_to_str()
51 strncpy(str, "GAINWR_BUFFER", SMTBUF_NAME_STR_LEN); in buf_type_to_str()
54 strncpy(str, "UNKNOWN", SMTBUF_NAME_STR_LEN); in buf_type_to_str()
/OK3568_Linux_fs/kernel/include/scsi/
H A Dfc_encode.h171 strncpy(ct->payload.spn.fr_name, in fc_ct_ns_fill()
181 strncpy(ct->payload.snn.fr_name, in fc_ct_ns_fill()
263 strncpy((char *)&entry->value, in fc_ct_ms_fill()
275 strncpy((char *)&entry->value, in fc_ct_ms_fill()
287 strncpy((char *)&entry->value, in fc_ct_ms_fill()
299 strncpy((char *)&entry->value, in fc_ct_ms_fill()
311 strncpy((char *)&entry->value, in fc_ct_ms_fill()
323 strncpy((char *)&entry->value, in fc_ct_ms_fill()
335 strncpy((char *)&entry->value, in fc_ct_ms_fill()
347 strncpy((char *)&entry->value, in fc_ct_ms_fill()
[all …]
/OK3568_Linux_fs/kernel/fs/orangefs/
H A Dnamei.c43 strncpy(new_op->upcall.req.create.d_name, in orangefs_create()
139 strncpy(new_op->upcall.req.lookup.d_name, dentry->d_name.name, in orangefs_lookup()
194 strncpy(new_op->upcall.req.remove.d_name, dentry->d_name.name, in orangefs_unlink()
248 strncpy(new_op->upcall.req.sym.entry_name, in orangefs_symlink()
251 strncpy(new_op->upcall.req.sym.target, symname, ORANGEFS_NAME_MAX - 1); in orangefs_symlink()
324 strncpy(new_op->upcall.req.mkdir.d_name, in orangefs_mkdir()
404 strncpy(new_op->upcall.req.rename.d_old_name, in orangefs_rename()
407 strncpy(new_op->upcall.req.rename.d_new_name, in orangefs_rename()
/OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-daemons/ippool/ippool/
H A Dstrncpy-truncation.patch1 Replace strncpy with memcpy
4 be copied has already been determined with strlen(). Replace strncpy()
35 - strncpy(&text_buf[0], text1, left_margin - 3);
/OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-connectivity/rdate/rdate/
H A D0001-rdate-define-logwtmp-on-libc-glibc.patch27 + strncpy(u.ut_line, line, sizeof(u.ut_line));
28 + strncpy(u.ut_name, name, sizeof(u.ut_name));
29 + strncpy(u.ut_host, host, sizeof(u.ut_host));
/OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/make/make/
H A D0001-src-dir.c-fix-buffer-overflow-warning.patch7 src/dir.c:1294:7: warning: 'strncpy' specified bound depends on the
32 - strncpy (parent, path, plen - 2);
34 + strncpy (parent, path, MAXPATHLEN);
/OK3568_Linux_fs/kernel/tools/perf/arch/x86/util/
H A Dheader.c35 strncpy(&vendor[0], (char *)(&b), 4); in __get_cpuid()
36 strncpy(&vendor[4], (char *)(&d), 4); in __get_cpuid()
37 strncpy(&vendor[8], (char *)(&c), 4); in __get_cpuid()
/OK3568_Linux_fs/u-boot/board/corscience/tricorder/
H A Dtricorder-eeprom.c146 strncpy(eeprom.board_name, name, length); in tricorder_eeprom_write()
149 strncpy(eeprom.board_version, version, length); in tricorder_eeprom_write()
152 strncpy(eeprom.board_serial, serial, length); in tricorder_eeprom_write()
157 strncpy(eeprom.interface_version, interface, length); in tricorder_eeprom_write()
/OK3568_Linux_fs/yocto/poky/meta/recipes-extended/unzip/unzip/
H A D06-unzip60-alt-iconv-utf8_CVE-2015-1315.patch65 + strncpy(OEM_CP, dos_charset_map[i].archive_charset,
112 + strncpy(string, buf, buflen);
250 + strncpy(ISO_CP, s, sizeof(ISO_CP));
259 + strncpy(ISO_CP, s, sizeof(ISO_CP));
286 + strncpy(OEM_CP, s, sizeof(OEM_CP));
295 + strncpy(OEM_CP, s, sizeof(OEM_CP));
350 + strncpy(ISO_CP, s, sizeof(ISO_CP));
359 + strncpy(ISO_CP, s, sizeof(ISO_CP));
386 + strncpy(OEM_CP, s, sizeof(OEM_CP));
395 + strncpy(OEM_CP, s, sizeof(OEM_CP));
/OK3568_Linux_fs/external/rkwifibt-app/test/
H A Dmain.c239 strncpy(szBuf, szBuf_space, strlen(szBuf_space) - 1); in rkwifibt_test_wifi_config()
248 strncpy(cmdBuf, szBuf, strlen(szBuf) - strlen(input_start) - 1); in rkwifibt_test_wifi_config()
281 strncpy(szBuf, szBuf_space, strlen(szBuf_space) - 1); in rkwifibt_test_bluetooth()
291 strncpy(cmdBuf, szBuf, strlen(szBuf) - strlen(input_start) - 1); in rkwifibt_test_bluetooth()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/
H A Dwldev_common.c442 strncpy(cap, "n", caplen); in wldev_get_mode()
444 strncpy(cap, "bg", caplen); in wldev_get_mode()
447 strncpy(cap, "ac", caplen); in wldev_get_mode()
450 strncpy(cap, "n|ac", caplen); in wldev_get_mode()
452 strncpy(cap, "n", caplen); in wldev_get_mode()
454 strncpy(cap, "ac", caplen); in wldev_get_mode()
456 strncpy(cap, "a", caplen); in wldev_get_mode()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/
H A Dwldev_common.c442 strncpy(cap, "n", caplen); in wldev_get_mode()
444 strncpy(cap, "bg", caplen); in wldev_get_mode()
447 strncpy(cap, "ac", caplen); in wldev_get_mode()
450 strncpy(cap, "n|ac", caplen); in wldev_get_mode()
452 strncpy(cap, "n", caplen); in wldev_get_mode()
454 strncpy(cap, "ac", caplen); in wldev_get_mode()
456 strncpy(cap, "a", caplen); in wldev_get_mode()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_indep_power/
H A Dwldev_common.c449 strncpy(cap, "n", caplen); in wldev_get_mode()
451 strncpy(cap, "bg", caplen); in wldev_get_mode()
454 strncpy(cap, "ac", caplen); in wldev_get_mode()
457 strncpy(cap, "n|ac", caplen); in wldev_get_mode()
459 strncpy(cap, "n", caplen); in wldev_get_mode()
461 strncpy(cap, "ac", caplen); in wldev_get_mode()
463 strncpy(cap, "a", caplen); in wldev_get_mode()
/OK3568_Linux_fs/external/rkwifibt/drivers/infineon/
H A Dwldev_common.c442 strncpy(cap, "n", caplen); in wldev_get_mode()
444 strncpy(cap, "bg", caplen); in wldev_get_mode()
447 strncpy(cap, "ac", caplen); in wldev_get_mode()
450 strncpy(cap, "n|ac", caplen); in wldev_get_mode()
452 strncpy(cap, "n", caplen); in wldev_get_mode()
454 strncpy(cap, "ac", caplen); in wldev_get_mode()
456 strncpy(cap, "a", caplen); in wldev_get_mode()
/OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-protocols/openlldp/files/
H A D0008-stringops-fix-some-string-copy-errors.patch26 - strncpy(*name, it->second->pgid_desc[bwgid],
54 - strncpy(newport->ifname, ifname, IFNAMSIZ);
55 + strncpy(newport->ifname, ifname, IFNAMSIZ - 1);
/OK3568_Linux_fs/u-boot/common/
H A Dfb_common.c16 strncpy(response, fail_str, FASTBOOT_RESPONSE_LEN); in fastboot_fail()
23 strncpy(response, okay_str, FASTBOOT_RESPONSE_LEN); in fastboot_okay()
/OK3568_Linux_fs/kernel/drivers/staging/greybus/Documentation/firmware/
H A Dfirmware.c66 strncpy((char *)&intf_load.firmware_tag, firmware_tag, in update_intf_firmware()
104 strncpy((char *)&backend_fw_info.firmware_tag, firmware_tag, in update_backend_firmware()
132 strncpy((char *)&backend_update.firmware_tag, firmware_tag, in update_backend_firmware()

12345678910>>...42