immortalwrt/tools/firmware-utils/src
Petr Štetiar 958e6c4ebf firmware-utils: mkfwimage: fix memcpy and strncpy usage
Firmware is binary blob, so there are barely any NULL terminated strings
expected, so we should probably convert all chars into u8 types, and
after that it's clear, that using strcpy doesn't make sense anymore.

This is rather theoretical stuff, but `uint8_t name[PART_NAME_LENGTH]`
means, that you can supply PART_NAME_LENGTH sized name, not
PART_NAME_LENGTH-1 name when NULL terminated.

Ref: https://github.com/openwrt/openwrt/pull/2274
Fixes: 04cb651376 ("firmware-utils: mkfwimage: fix more errors reported by gcc-6/7/9")
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-07-12 11:57:40 +08:00
..
add_header.c update source 2017-09-06 19:19:45 +08:00
addpattern.c update source 2017-09-06 19:19:45 +08:00
asustrx.c update source 2017-09-06 19:19:45 +08:00
bcm_tag.h update source 2017-09-06 19:19:45 +08:00
bcmalgo.c update source 2017-09-06 19:19:45 +08:00
bcmalgo.h update source 2017-09-06 19:19:45 +08:00
buffalo-enc.c update source 2017-09-06 19:19:45 +08:00
buffalo-lib.c update source 2017-09-06 19:19:45 +08:00
buffalo-lib.h update source 2017-09-06 19:19:45 +08:00
buffalo-tag.c update source 2017-09-06 19:19:45 +08:00
buffalo-tftp.c update source 2017-09-06 19:19:45 +08:00
csysimg.h update source 2017-09-06 19:19:45 +08:00
cyg_crc16.c update source 2017-09-06 19:19:45 +08:00
cyg_crc32.c update source 2017-09-06 19:19:45 +08:00
cyg_crc.h update source 2017-09-06 19:19:45 +08:00
dgfirmware.c firmware-utils/mksenaofw: fix possible memory leak 2020-01-21 14:33:54 +08:00
dgn3500sum.c update source 2017-09-06 19:19:45 +08:00
dns313-header.c firmware-utils/mksenaofw: fix possible memory leak 2020-01-21 14:33:54 +08:00
edimax_fw_header.c update source 2017-09-06 19:19:45 +08:00
encode_crc.c update source 2017-09-06 19:19:45 +08:00
fix-u-media-header.c update source 2017-09-06 19:19:45 +08:00
fw.h firmware-utils: mkfwimage: fix memcpy and strncpy usage 2020-07-12 11:57:40 +08:00
hcsmakeimage.c firmware-utils/hcsmakeimage: fix possible memory leak and resource leaks 2020-07-09 12:04:37 +08:00
imagetag_cmdline.c update source 2017-09-06 19:19:45 +08:00
imagetag_cmdline.h update source 2017-09-06 19:19:45 +08:00
imagetag.c update source 2017-09-06 19:19:45 +08:00
imagetag.ggo update source 2017-09-06 19:19:45 +08:00
jcgimage.c ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00
lxlfw.c mkrasimage: fix segmentation fault 2020-03-02 17:53:40 +08:00
lzma2eva.c update source 2017-09-06 19:19:45 +08:00
makeamitbin.c update source 2017-09-06 19:19:45 +08:00
md5.c update source 2017-09-06 19:19:45 +08:00
md5.h update source 2017-09-06 19:19:45 +08:00
mkbrncmdline.c update source 2017-09-06 19:19:45 +08:00
mkbrnimg.c update source 2017-09-06 19:19:45 +08:00
mkbuffaloimg.c update source 2017-09-06 19:19:45 +08:00
mkcameofw.c update source 2017-09-06 19:19:45 +08:00
mkcasfw.c update source 2017-09-06 19:19:45 +08:00
mkchkimg.c mkchkimg: use higher version code 2020-06-11 11:58:42 +08:00
mkcsysimg.c update source 2017-09-06 19:19:45 +08:00
mkdapimg2.c ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00
mkdapimg.c ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00
mkdhpimg.c update source 2017-09-06 19:19:45 +08:00
mkdlinkfw-lib.c ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00
mkdlinkfw-lib.h ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00
mkdlinkfw.c ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00
mkdniimg.c update source 2017-09-06 19:19:45 +08:00
mkedimaximg.c Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
mkfwimage2.c firmware-utils/mksenaofw: fix possible memory leak 2020-01-21 14:33:54 +08:00
mkfwimage.c firmware-utils: mkfwimage: fix memcpy and strncpy usage 2020-07-12 11:57:40 +08:00
mkheader_gemtek.c update source 2017-09-06 19:19:45 +08:00
mkhilinkfw.c update source 2017-09-06 19:19:45 +08:00
mkmerakifw-old.c update source 2017-09-06 19:19:45 +08:00
mkmerakifw.c update source 2017-09-06 19:19:45 +08:00
mkmylofw.c update source 2017-09-06 19:19:45 +08:00
mkplanexfw.c update source 2017-09-06 19:19:45 +08:00
mkporayfw.c update source 2017-09-06 19:19:45 +08:00
mkrasimage.c mkrasimage: fix segmentation fault 2020-03-02 17:53:40 +08:00
mkrtn56uimg.c update source 2017-09-06 19:19:45 +08:00
mksenaofw.c firmware-utils/mksenaofw: fix possible memory leak 2020-01-21 14:33:54 +08:00
mksercommfw.c ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00
mktitanimg.c firmware-utils/mksenaofw: fix possible memory leak 2020-01-21 14:33:54 +08:00
mktitanimg.h update source 2017-09-06 19:19:45 +08:00
mktplinkfw2.c ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00
mktplinkfw-lib.c Merge branch 'master' of https://github.com/lede-project/source 2018-01-09 14:38:15 +08:00
mktplinkfw-lib.h Merge branch 'master' of https://github.com/lede-project/source 2018-01-09 14:38:15 +08:00
mktplinkfw.c firmware-utils/mksenaofw: fix possible memory leak 2020-01-21 14:33:54 +08:00
mkwrggimg.c update source 2017-09-06 19:19:45 +08:00
mkwrgimg.c update source 2017-09-06 19:19:45 +08:00
mkzcfw.c update source 2017-09-06 19:19:45 +08:00
mkzynfw.c update source 2017-09-06 19:19:45 +08:00
motorola-bin.c update source 2017-09-06 19:19:45 +08:00
myloader.h update source 2017-09-06 19:19:45 +08:00
nand_ecc.c update source 2017-09-06 19:19:45 +08:00
nec-enc.c ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00
osbridge-crc.c update source 2017-09-06 19:19:45 +08:00
oseama.c update source 2017-09-06 19:19:45 +08:00
otrx.c Merge branch 'master' of https://github.com/lede-project/source 2018-01-09 14:38:15 +08:00
pc1crypt.c update source 2017-09-06 19:19:45 +08:00
ptgen.c ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00
seama.c update source 2017-09-06 19:19:45 +08:00
seama.h update source 2017-09-06 19:19:45 +08:00
sha1.c update source 2017-09-06 19:19:45 +08:00
sha1.h update source 2017-09-06 19:19:45 +08:00
spw303v.c update source 2017-09-06 19:19:45 +08:00
srec2bin.c update source 2017-09-06 19:19:45 +08:00
tplink-safeloader.c mtd: sync upstream source code 2020-05-31 20:01:05 +08:00
trx2edips.c update source 2017-09-06 19:19:45 +08:00
trx2usr.c update source 2017-09-06 19:19:45 +08:00
trx.c update source 2017-09-06 19:19:45 +08:00
uimage_padhdr.c ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00
utils.h firmware-utils: mkfwimage: fix memcpy and strncpy usage 2020-07-12 11:57:40 +08:00
wrt400n.c update source 2017-09-06 19:19:45 +08:00
xorimage.c Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
zyimage.c update source 2017-09-06 19:19:45 +08:00
zynos.h update source 2017-09-06 19:19:45 +08:00
zyxbcm.c update source 2017-09-06 19:19:45 +08:00