diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 14:51:57 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 14:51:57 +0000 |
commit | 1c38c7a67e9d4d68e27c6ad183d1cccbb5596ddf (patch) | |
tree | 038435729af9aceab96d4484e895e310740e9885 /debian/patches/fix-wformat-security.diff | |
parent | Adding upstream version 8.2. (diff) | |
download | readline-1c38c7a67e9d4d68e27c6ad183d1cccbb5596ddf.tar.xz readline-1c38c7a67e9d4d68e27c6ad183d1cccbb5596ddf.zip |
Adding debian version 8.2-1.3.debian/8.2-1.3debian
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.diff | 16 |
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..5fb71a2 --- /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 + +--- a/examples/rlfe/rlfe.c ++++ b/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; + } |