File: hardening-format.patch

package info (click to toggle)
wv 1.2.9-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,284 kB
  • sloc: ansic: 31,044; sh: 11,660; xml: 1,677; makefile: 20
file content (18 lines) | stat: -rw-r--r-- 485 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
Last-Update: 2012-02-10
Forwarded: yes
Description: fixes FTBFS with format hardening
 Workaround for error: "format not a string literal and
 "no format arguments [-Werror=format-security]"

--- a/wvRTF.c
+++ b/wvRTF.c
@@ -192,7 +192,7 @@
     rtf_output_char ('{');
 
     /* font color */
-    rtf_output (rtfColors[ud->cCol]);
+    rtf_output ("%s", rtfColors[ud->cCol]);
 
     /* font face */
     rtf_output ("\\f%d", ud->cFont);