/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/lowpan-tools/lowpan-tools/ |
H A D | 0001-Fix-potential-string-truncation-in-strncpy.patch | 4 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 D | 0001-coordinator-Fix-strncpy-range-warning.patch | 4 Subject: [PATCH] coordinator: Fix strncpy range warning 7 error: 'strncpy' specified bound 4096 equals destination size [-Werror=stringop-truncation] 24 - strncpy(pname, argv[0], PATH_MAX); 25 + strncpy(pname, argv[0], PATH_MAX - 1);
|
/openbmc/openbmc/meta-openembedded/meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa/ |
H A D | 0001-fixed-compilation-error-caused-by-strncpy.patch | 4 Subject: [PATCH] fixed compilation error caused by strncpy 28 strncpy((char *)id->name, (char *)ctl->name, 37 strncpy(einfo->value.enumerated.name, 55 - strncpy((char *)info->id, name, sizeof(info->id)); 56 - strncpy((char *)info->name, name, sizeof(info->name)); 57 - strncpy((char *)info->subname, name, sizeof(info->subname)); 58 + strncpy((char *)info->id, name, sizeof(info->id) - 1); 60 + strncpy((char *)info->name, name, sizeof(info->name) - 1); 62 + strncpy((char *)info->subname, name, sizeof(info->subname) - 1);
|
/openbmc/u-boot/drivers/misc/ |
H A D | misc_sandbox.c | 55 strncpy(rx_msg, "Zero", rx_size); in misc_sandbox_call() 58 strncpy(rx_msg, "One", rx_size); in misc_sandbox_call() 61 strncpy(rx_msg, "Two", rx_size); in misc_sandbox_call() 73 strncpy(rx_msg, "Forty", rx_size); in misc_sandbox_call() 76 strncpy(rx_msg, "Forty-one", rx_size); in misc_sandbox_call() 79 strncpy(rx_msg, "Forty-two", rx_size); in misc_sandbox_call()
|
/openbmc/linux/arch/alpha/lib/ |
H A D | strncpy.S | 21 .globl strncpy 22 .ent strncpy 23 strncpy: label 82 .end strncpy 83 EXPORT_SYMBOL(strncpy)
|
/openbmc/phosphor-mboxd/vpnor/test/ |
H A D | tmpd.hpp | 57 strncpy(ctx->paths.ro_loc, ro().c_str(), PATH_MAX - 1); in VpnorRoot() 59 strncpy(ctx->paths.rw_loc, rw().c_str(), PATH_MAX - 1); in VpnorRoot() 61 strncpy(ctx->paths.prsv_loc, prsv().c_str(), PATH_MAX - 1); in VpnorRoot() 63 strncpy(ctx->paths.patch_loc, patch().c_str(), PATH_MAX - 1); in VpnorRoot()
|
/openbmc/qemu/hw/acpi/ |
H A D | bios-linker-loader.c | 206 strncpy(entry.alloc.file, file_name, sizeof entry.alloc.file - 1); in bios_linker_loader_alloc() 246 strncpy(entry.cksum.file, file_name, sizeof entry.cksum.file - 1); in bios_linker_loader_add_checksum() 292 strncpy(entry.pointer.dest_file, dest_file, in bios_linker_loader_add_pointer() 294 strncpy(entry.pointer.src_file, src_file, in bios_linker_loader_add_pointer() 339 strncpy(entry.wr_pointer.dest_file, dest_file, in bios_linker_loader_write_pointer() 341 strncpy(entry.wr_pointer.src_file, src_file, in bios_linker_loader_write_pointer()
|
/openbmc/phosphor-mboxd/vpnor/ |
H A D | mboxd_pnor_partition_table.cpp | 21 strncpy(context->paths.ro_loc, PARTITION_FILES_RO_LOC, PATH_MAX); in init_vpnor() 23 strncpy(context->paths.rw_loc, PARTITION_FILES_RW_LOC, PATH_MAX); in init_vpnor() 25 strncpy(context->paths.prsv_loc, PARTITION_FILES_PRSV_LOC, PATH_MAX); in init_vpnor() 27 strncpy(context->paths.patch_loc, PARTITION_FILES_PATCH_LOC, PATH_MAX); in init_vpnor()
|
/openbmc/linux/fs/orangefs/ |
H A D | namei.c | 44 strncpy(new_op->upcall.req.create.d_name, in orangefs_create() 140 strncpy(new_op->upcall.req.lookup.d_name, dentry->d_name.name, in orangefs_lookup() 195 strncpy(new_op->upcall.req.remove.d_name, dentry->d_name.name, in orangefs_unlink() 250 strncpy(new_op->upcall.req.sym.entry_name, in orangefs_symlink() 253 strncpy(new_op->upcall.req.sym.target, symname, ORANGEFS_NAME_MAX - 1); in orangefs_symlink() 327 strncpy(new_op->upcall.req.mkdir.d_name, in orangefs_mkdir() 408 strncpy(new_op->upcall.req.rename.d_old_name, in orangefs_rename() 411 strncpy(new_op->upcall.req.rename.d_new_name, in orangefs_rename()
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/ippool/ippool/ |
H A D | strncpy-truncation.patch | 1 Replace strncpy with memcpy 4 be copied has already been determined with strlen(). Replace strncpy() 35 - strncpy(&text_buf[0], text1, left_margin - 3);
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-connectivity/rdate/rdate/ |
H A D | 0001-rdate-define-logwtmp-on-libc-glibc.patch | 29 + strncpy(u.ut_line, line, sizeof(u.ut_line)); 30 + strncpy(u.ut_name, name, sizeof(u.ut_name)); 31 + strncpy(u.ut_host, host, sizeof(u.ut_host));
|
/openbmc/linux/tools/perf/arch/x86/util/ |
H A D | header.c | 19 strncpy(&vendor[0], (char *)(&b), 4); in get_cpuid_0() 20 strncpy(&vendor[4], (char *)(&d), 4); in get_cpuid_0() 21 strncpy(&vendor[8], (char *)(&c), 4); in get_cpuid_0()
|
/openbmc/u-boot/board/corscience/tricorder/ |
H A D | tricorder-eeprom.c | 146 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()
|
/openbmc/openbmc/meta-openembedded/meta-oe/dynamic-layers/multimedia-layer/recipes-graphics/taisei/taisei/ |
H A D | 0001-util-consideredharmful-Use-overloadable-func-attribu.patch | 52 #undef strncpy 54 -char* strncpy(); 55 +char* OVERLOADABLE strncpy();
|
/openbmc/openbmc/poky/meta/recipes-extended/unzip/unzip/ |
H A D | 06-unzip60-alt-iconv-utf8_CVE-2015-1315.patch | 65 + 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));
|
/openbmc/linux/drivers/staging/greybus/Documentation/firmware/ |
H A D | firmware.c | 66 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()
|
/openbmc/qemu/bsd-user/freebsd/ |
H A D | os-stat.c | 207 strncpy(target_statfs->f_fstypename, host_statfs->f_fstypename, in h2t_freebsd11_statfs() 209 strncpy(target_statfs->f_mntfromname, host_statfs->f_mntfromname, in h2t_freebsd11_statfs() 211 strncpy(target_statfs->f_mntonname, host_statfs->f_mntonname, in h2t_freebsd11_statfs() 245 strncpy(target_statfs->f_fstypename, host_statfs->f_fstypename, in h2t_freebsd_statfs() 247 strncpy(target_statfs->f_mntfromname, host_statfs->f_mntfromname, in h2t_freebsd_statfs() 249 strncpy(target_statfs->f_mntonname, host_statfs->f_mntonname, in h2t_freebsd_statfs()
|
/openbmc/linux/drivers/scsi/elx/libefc/ |
H A D | efc_node.h | 29 strncpy(node->current_state_name, handler, in efc_node_evt_set() 32 strncpy(node->prev_state_name, node->current_state_name, in efc_node_evt_set() 34 strncpy(node->current_state_name, "invalid", in efc_node_evt_set()
|
/openbmc/linux/arch/powerpc/lib/ |
H A D | string.S | 15 _GLOBAL(strncpy) 33 EXPORT_SYMBOL(strncpy)
|
/openbmc/linux/drivers/acpi/acpica/ |
H A D | tbfind.c | 60 strncpy(header.oem_id, oem_id, ACPI_OEM_ID_SIZE); in acpi_tb_find_table() 61 strncpy(header.oem_table_id, oem_table_id, ACPI_OEM_TABLE_ID_SIZE); in acpi_tb_find_table()
|
/openbmc/linux/drivers/accel/habanalabs/common/ |
H A D | habanalabs_drv.c | 414 strncpy(hdev->status[HL_DEVICE_STATUS_OPERATIONAL], "operational", HL_STR_MAX); in create_hdev() 415 strncpy(hdev->status[HL_DEVICE_STATUS_IN_RESET], "in reset", HL_STR_MAX); in create_hdev() 416 strncpy(hdev->status[HL_DEVICE_STATUS_MALFUNCTION], "disabled", HL_STR_MAX); in create_hdev() 417 strncpy(hdev->status[HL_DEVICE_STATUS_NEEDS_RESET], "needs reset", HL_STR_MAX); in create_hdev() 418 strncpy(hdev->status[HL_DEVICE_STATUS_IN_DEVICE_CREATION], in create_hdev() 420 strncpy(hdev->status[HL_DEVICE_STATUS_IN_RESET_AFTER_DEVICE_RELEASE], in create_hdev()
|
/openbmc/openbmc/meta-openembedded/meta-gnome/recipes-support/accountsservice/accountsservice/ |
H A D | 0002-musl-add-missing-fgetspent_r.patch | 36 + spbuf->sp_namp = strncpy(buf, shadow_entry->sp_namp, namplen + 1); 37 + spbuf->sp_pwdp = strncpy(buf + namplen + 1, shadow_entry->sp_pwdp, pwdplen + 1);
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/libconfuse/files/ |
H A D | CVE-2022-40320.patch | 37 - strncpy(user, filename + 1, file - filename - 1); 38 + strncpy(user, &filename[1], len);
|
/openbmc/qemu/hw/sensor/ |
H A D | adm1266.c | 98 strncpy(s->mfr_id, ADM1266_MFR_ID_DEFAULT, 4); in adm1266_exit_reset() 99 strncpy(s->mfr_model, ADM1266_MFR_MODEL_DEFAULT, 11); in adm1266_exit_reset() 100 strncpy(s->mfr_rev, ADM1266_MFR_REVISION_DEFAULT, 3); in adm1266_exit_reset()
|
/openbmc/linux/arch/x86/lib/ |
H A D | string_32.c | 34 char *strncpy(char *dest, const char *src, size_t count) in strncpy() function 50 EXPORT_SYMBOL(strncpy);
|