diff options
author | Claudiu Beznea <claudiu.beznea@microchip.com> | 2022-02-04 15:27:51 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2022-02-24 19:05:28 +0100 |
commit | 3ed992a99630457f660761ce199e3d2a00f06168 (patch) | |
tree | 96f5d99ee09066bf57ca64989eb369cdbb8d18d7 /package/boot/uboot-at91/patches/001-fix-Wformat-security.patch | |
parent | bf13b2da2a2336662ac9a7a9952add19557ef935 (diff) | |
download | upstream-3ed992a99630457f660761ce199e3d2a00f06168.tar.gz upstream-3ed992a99630457f660761ce199e3d2a00f06168.tar.bz2 upstream-3ed992a99630457f660761ce199e3d2a00f06168.zip |
uboot-at91: update to linux4sam-2021.10
Update uboot-at91 to linux4sam-2021.10 version.
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Diffstat (limited to 'package/boot/uboot-at91/patches/001-fix-Wformat-security.patch')
-rw-r--r-- | package/boot/uboot-at91/patches/001-fix-Wformat-security.patch | 49 |
1 files changed, 35 insertions, 14 deletions
diff --git a/package/boot/uboot-at91/patches/001-fix-Wformat-security.patch b/package/boot/uboot-at91/patches/001-fix-Wformat-security.patch index 4c968a2448..d39a91aaf0 100644 --- a/package/boot/uboot-at91/patches/001-fix-Wformat-security.patch +++ b/package/boot/uboot-at91/patches/001-fix-Wformat-security.patch @@ -1,17 +1,46 @@ +From 3b05406c02070df3e7f19399d81ebd35ed6deae5 Mon Sep 17 00:00:00 2001 +From: Claudiu Beznea <claudiu.beznea@microchip.com> +Date: Tue, 12 Oct 2021 17:43:28 +0300 +Subject: [PATCH] fix -Wformat-security + +Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> +--- + cmd/panic.c | 2 +- + cmd/version.c | 2 +- + drivers/pinctrl/pinctrl-uclass.c | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/cmd/panic.c b/cmd/panic.c +index f13b3f094fab..197e2d0870ff 100644 +--- a/cmd/panic.c ++++ b/cmd/panic.c +@@ -11,7 +11,7 @@ static int do_panic(struct cmd_tbl *cmdtp, int flag, int argc, + { + char *text = (argc < 2) ? "" : argv[1]; + +- panic(text); ++ panic("%s\n", text); + + return CMD_RET_SUCCESS; + } +diff --git a/cmd/version.c b/cmd/version.c +index 3686b8733249..35b52c48171d 100644 --- a/cmd/version.c +++ b/cmd/version.c -@@ -18,7 +18,7 @@ static int do_version(cmd_tbl_t *cmdtp, +@@ -19,7 +19,7 @@ static int do_version(struct cmd_tbl *cmdtp, int flag, int argc, { char buf[DISPLAY_OPTIONS_BANNER_LENGTH]; - printf(display_options_get_banner(false, buf, sizeof(buf))); -+ printf("%s",display_options_get_banner(false, buf, sizeof(buf))); ++ printf("%s", display_options_get_banner(false, buf, sizeof(buf))); #ifdef CC_VERSION_STRING puts(CC_VERSION_STRING "\n"); #endif +diff --git a/drivers/pinctrl/pinctrl-uclass.c b/drivers/pinctrl/pinctrl-uclass.c +index b0f30aa1f758..aa62a890609a 100644 --- a/drivers/pinctrl/pinctrl-uclass.c +++ b/drivers/pinctrl/pinctrl-uclass.c -@@ -368,7 +368,7 @@ int pinctrl_get_pin_name(struct udevice +@@ -371,7 +371,7 @@ int pinctrl_get_pin_name(struct udevice *dev, int selector, char *buf, if (!ops->get_pin_name) return -ENOSYS; @@ -20,14 +49,6 @@ return 0; } ---- a/lib/efi_loader/efi_variable.c -+++ b/lib/efi_loader/efi_variable.c -@@ -522,7 +522,7 @@ efi_status_t EFIAPI efi_set_variable(u16 - - if (old_size) - /* APPEND_WRITE */ -- s += sprintf(s, old_val); -+ s += sprintf(s, "%s", old_val); - else - s += sprintf(s, "(blob)"); - +-- +2.33.0 + |