summaryrefslogtreecommitdiff
path: root/source/ap/dash/dash-0.5.7-format-security.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/ap/dash/dash-0.5.7-format-security.patch')
-rw-r--r--source/ap/dash/dash-0.5.7-format-security.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/ap/dash/dash-0.5.7-format-security.patch b/source/ap/dash/dash-0.5.7-format-security.patch
new file mode 100644
index 00000000..d578dfbd
--- /dev/null
+++ b/source/ap/dash/dash-0.5.7-format-security.patch
@@ -0,0 +1,13 @@
+diff --git a/src/jobs.c b/src/jobs.c
+index bf40204..f3af44d 100644
+--- a/src/jobs.c
++++ b/src/jobs.c
+@@ -427,7 +427,7 @@ sprint_status(char *s, int status, int sigonly)
+ goto out;
+ #endif
+ }
+- col = fmtstr(s, 32, strsignal(st));
++ col = fmtstr(s, 32, "%s", strsignal(st));
+ #ifdef WCOREDUMP
+ if (WCOREDUMP(status)) {
+ col += fmtstr(s + col, 16, " (core dumped)");