u-boot/boot
Heinrich Schuchardt 085cbdafca pxe: simplify label_boot()
Coverity CID 131256 indicates a possible buffer overflow in label_boot().
This would only occur if the size of the downloaded file would exceed 4
GiB. But anyway we can simplify the code by using snprintf() and checking
the return value.

Addresses-Coverity-ID: 131256 ("Security best practices violations (STRING_OVERFLOW)")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Artem Lapkin <email2tema@gmail.com>
2022-07-18 17:21:49 +02:00
..
android_ab.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
boot_fit.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
bootdev-uclass.c bootstd: Add support for bootflows 2022-04-25 10:00:04 -04:00
bootflow.c bootstd: Add support for bootflows 2022-04-25 10:00:04 -04:00
bootm.c Convert CONFIG_SYS_BOOTM_LEN to Kconfig 2022-07-07 14:01:09 -04:00
bootm_os.c bootm: Tidy up use of autostart env var 2021-11-16 14:35:09 -05:00
bootmeth-uclass.c bootstd: Add the bootmeth uclass and helpers 2022-04-25 10:00:04 -04:00
bootmeth_distro.c bootstd: Add an implementation of distro boot 2022-04-25 10:00:04 -04:00
bootmeth_efi.c bootstd: Add an implementation of EFI boot 2022-04-25 10:00:04 -04:00
bootmeth_efi_mgr.c bootstd: Add an implementation of EFI bootmgr 2022-04-25 10:00:04 -04:00
bootmeth_pxe.c bootstd: Add an implementation of distro PXE boot 2022-04-25 10:00:04 -04:00
bootmeth_sandbox.c bootstd: Add a sandbox bootmeth driver 2022-04-25 10:00:04 -04:00
bootmeth_script.c bootstd: Add an implementation of script boot 2022-04-25 10:00:04 -04:00
bootretry.c Convert CONFIG_BOOT_RETRY_TIME et al to Kconfig 2022-03-18 12:48:17 -04:00
bootstd-uclass.c bootstd: Add a system bootdev for strange boot methods 2022-04-25 10:00:04 -04:00
common_fit.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
fdt_region.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
image-android-dt.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
image-android.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-board.c Convert CONFIG_SYS_BARGSIZE to Kconfig 2022-06-06 12:09:00 -04:00
image-cipher.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-fdt.c image: fdt: Fix DT relocation handling with multiple DRAM banks with gap 2022-04-20 11:14:39 -04:00
image-fit-sig.c tools: Pass the key blob around 2022-01-26 08:50:44 -07:00
image-fit.c image: fit: Use stack allocation macro 2022-07-01 16:01:25 -04:00
image-host.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-pre-load.c boot: image-pre-load: drop unused CONFIG_SYS_BOOTM_LEN 2022-06-06 17:47:16 -04:00
image-sig.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image.c tools: mkimage: Add Allwinner TOC0 support 2022-04-04 23:24:17 +01:00
Kconfig Convert CONFIG_SYS_BOOT_RAMDISK_HIGH to Kconfig 2022-07-07 14:01:09 -04:00
Makefile bootstd: Add an implementation of script boot 2022-04-25 10:00:04 -04:00
pxe_utils.c pxe: simplify label_boot() 2022-07-18 17:21:49 +02:00
system_bootdev.c bootstd: Add a system bootdev for strange boot methods 2022-04-25 10:00:04 -04:00