summaryrefslogtreecommitdiffstats
path: root/debian/patches/fix-wformat-security.diff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 02:18:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 02:18:09 +0000
commit94699d7e8b4fed22ac9d24b7f2a3a28c282424e9 (patch)
treef5b77c68cf16faa6d133528d5af9daac899ba009 /debian/patches/fix-wformat-security.diff
parentAdding upstream version 7.0. (diff)
downloadreadline-94699d7e8b4fed22ac9d24b7f2a3a28c282424e9.tar.xz
readline-94699d7e8b4fed22ac9d24b7f2a3a28c282424e9.zip
Adding debian version 7.0-5.debian/7.0-5debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/fix-wformat-security.diff')
-rw-r--r--debian/patches/fix-wformat-security.diff16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/fix-wformat-security.diff b/debian/patches/fix-wformat-security.diff
new file mode 100644
index 0000000..84edbc8
--- /dev/null
+++ b/debian/patches/fix-wformat-security.diff
@@ -0,0 +1,16 @@
+Description: Fix compiling with -Werror=format-security.
+ Prevents format string attacks.
+Author: Simon Ruderich <simon@ruderich.org>
+Last-Update: 2012-09-15
+
+--- readline6-6.2.orig/examples/rlfe/rlfe.c
++++ readline6-6.2/examples/rlfe/rlfe.c
+@@ -273,7 +273,7 @@ static void maybe_emphasize_input (int o
+ if (on == current_emphasize_input
+ || (on && ! do_emphasize_input))
+ return;
+- fprintf (rl_outstream, on ? start_input_mode : end_input_mode);
++ fprintf (rl_outstream, "%s", on ? start_input_mode : end_input_mode);
+ fflush (rl_outstream);
+ current_emphasize_input = on;
+ }