summaryrefslogtreecommitdiffstats
path: root/patches/source/util-linux/CVE-2024-28085.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/source/util-linux/CVE-2024-28085.patch')
-rw-r--r--patches/source/util-linux/CVE-2024-28085.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/patches/source/util-linux/CVE-2024-28085.patch b/patches/source/util-linux/CVE-2024-28085.patch
new file mode 100644
index 000000000..b84756550
--- /dev/null
+++ b/patches/source/util-linux/CVE-2024-28085.patch
@@ -0,0 +1,23 @@
+From f86bbf07ca85640c886dacc4fba159570ddc1b4d Mon Sep 17 00:00:00 2001
+From: Karel Zak <kzak@redhat.com>
+Date: Thu, 21 Mar 2024 11:16:20 +0100
+Subject: [PATCH] wall: consolidate output on the terminal
+
+Let's use for all cases the same output function.
+
+Signed-off-by: Karel Zak <kzak@redhat.com>
+---
+ term-utils/wall.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/term-utils/wall.c
++++ b/term-utils/wall.c
+@@ -328,7 +328,7 @@ static char *makemsg(char *fname, char *
+ int i;
+
+ for (i = 0; i < mvecsz; i++) {
+- fputs(mvec[i], fs);
++ fputs_careful(mvec[i], fs, '^', true, TERM_WIDTH);
+ if (i < mvecsz - 1)
+ fputc(' ', fs);
+ }