| /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/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/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/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/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/qemu/hw/acpi/ |
| H A D | bios-linker-loader.c | 204 strncpy(entry.alloc.file, file_name, sizeof entry.alloc.file - 1); in bios_linker_loader_alloc() 244 strncpy(entry.cksum.file, file_name, sizeof entry.cksum.file - 1); in bios_linker_loader_add_checksum() 290 strncpy(entry.pointer.dest_file, dest_file, in bios_linker_loader_add_pointer() 292 strncpy(entry.pointer.src_file, src_file, in bios_linker_loader_add_pointer() 337 strncpy(entry.wr_pointer.dest_file, dest_file, in bios_linker_loader_write_pointer() 339 strncpy(entry.wr_pointer.src_file, src_file, in bios_linker_loader_write_pointer()
|
| /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/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/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/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/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/openbmc/meta-openembedded/meta-gnome/recipes-support/accountsservice/accountsservice/ |
| H A D | 0002-musl-add-missing-fgetspent_r.patch | 38 + spbuf->sp_namp = strncpy(buf, shadow_entry->sp_namp, namplen + 1); 39 + spbuf->sp_pwdp = strncpy(buf + namplen + 1, shadow_entry->sp_pwdp, pwdplen + 1);
|
| /openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/lowpan-tools/ |
| H A D | lowpan-tools_git.bb | 17 file://0001-coordinator-Fix-strncpy-range-warning.patch \ 18 file://0001-Fix-potential-string-truncation-in-strncpy.patch \
|
| /openbmc/u-boot/arch/arm/mach-tegra/ |
| H A D | sys_info.c | 23 strncpy(soc_name, CONFIG_SYS_SOC, 10); in print_cpuinfo()
|
| /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/u-boot/arch/x86/lib/ |
| H A D | sfi.c | 51 strncpy(hdr->oem_id, "U-Boot", SFI_OEM_ID_SIZE); in finish_table() 52 strncpy(hdr->oem_table_id, "Table v1", SFI_OEM_TABLE_ID_SIZE); in finish_table()
|
| /openbmc/u-boot/arch/powerpc/include/asm/ |
| H A D | string.h | 19 extern char * strncpy(char *,const char *, __kernel_size_t);
|
| /openbmc/u-boot/arch/m68k/include/asm/ |
| H A D | string.h | 21 extern char * strncpy(char *,const char *, __kernel_size_t);
|
| /openbmc/u-boot/board/siemens/common/ |
| H A D | board.c | 223 strncpy(str_tmp, ptr_env, pos1*sizeof(char)); in set_env_gpios() 235 strncpy(str_tmp, ptr_env+pos1+1, in set_env_gpios()
|
| /openbmc/libcper/generator/sections/ |
| H A D | gen-section-nvidia.c | 49 strncpy(nvidia_error->Signature, signatures[idx_random], in generate_section_nvidia()
|
| /openbmc/u-boot/arch/x86/include/asm/ |
| H A D | string.h | 9 extern char *strncpy(char *__dest, __const__ char *__src, __kernel_size_t __n);
|
| /openbmc/u-boot/arch/mips/include/asm/ |
| H A D | string.h | 19 extern char *strncpy(char *__dest, __const__ char *__src, __kernel_size_t __n);
|
| /openbmc/u-boot/drivers/w1-eeprom/ |
| H A D | eep_sandbox.c | 25 strncpy((char *)buf, EEP_SANDBOX_SAMPLE_MEM, count); in eep_sandbox_read_buf()
|