diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-08-09 07:25:37 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-08-10 08:48:30 -0700 |
| commit | 8204ee52dea70f19e39f8f0affcb4e4edb203f8c (patch) | |
| tree | e52f38d6596a24cce29011a91c201318efd16563 /meta-initramfs/recipes-devtools/klibc/files/0001-dash-Specify-format-string-in-fmtstr.patch | |
| parent | bc2b1482a0a79a6ff7a9211d9a06f3d637ab9e3d (diff) | |
| download | meta-openembedded-8204ee52dea70f19e39f8f0affcb4e4edb203f8c.tar.gz | |
klibc: Upgrade to 2.0.10
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-initramfs/recipes-devtools/klibc/files/0001-dash-Specify-format-string-in-fmtstr.patch')
| -rw-r--r-- | meta-initramfs/recipes-devtools/klibc/files/0001-dash-Specify-format-string-in-fmtstr.patch | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/files/0001-dash-Specify-format-string-in-fmtstr.patch b/meta-initramfs/recipes-devtools/klibc/files/0001-dash-Specify-format-string-in-fmtstr.patch deleted file mode 100644 index 46a23987f5..0000000000 --- a/meta-initramfs/recipes-devtools/klibc/files/0001-dash-Specify-format-string-in-fmtstr.patch +++ /dev/null | |||
| @@ -1,29 +0,0 @@ | |||
| 1 | From 8beffe501c1ac5b35d62004735c4157c74183901 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sun, 9 Jul 2017 13:51:25 -0700 | ||
| 4 | Subject: [PATCH] dash: Specify format string in fmtstr() | ||
| 5 | |||
| 6 | Fixes build with hardening flags | ||
| 7 | |||
| 8 | usr/dash/jobs.c:429:3: error: format not a string literal and no format arguments [-Werror=format-security] | ||
| 9 | col = fmtstr(s, 32, strsignal(st)); | ||
| 10 | |||
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 12 | |||
| 13 | --- | ||
| 14 | usr/dash/jobs.c | 2 +- | ||
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 16 | |||
| 17 | diff --git a/usr/dash/jobs.c b/usr/dash/jobs.c | ||
| 18 | index 009bbfe..299bcac 100644 | ||
| 19 | --- a/usr/dash/jobs.c | ||
| 20 | +++ b/usr/dash/jobs.c | ||
| 21 | @@ -426,7 +426,7 @@ sprint_status(char *s, int status, int sigonly) | ||
| 22 | goto out; | ||
| 23 | #endif | ||
| 24 | } | ||
| 25 | - col = fmtstr(s, 32, strsignal(st)); | ||
| 26 | + col = fmtstr(s, 32, "%s", strsignal(st)); | ||
| 27 | #ifdef WCOREDUMP | ||
| 28 | if (WCOREDUMP(status)) { | ||
| 29 | col += fmtstr(s + col, 16, " (core dumped)"); | ||
