[tex4ht-commits] [SCM] tex4ht updated: r748 - trunk/lit

karl at gnu.org.ua karl at gnu.org.ua
Tue Jun 30 00:18:31 CEST 2020


Author: karl
Date: 2020-06-30 01:18:30 +0300 (Tue, 30 Jun 2020)
New Revision: 748

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-htcmd.tex
Log:
format-security patch for (unused) htcmd.c, http://puszcza.gnu.org.ua/bugs/?472

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2020-06-23 10:04:56 UTC (rev 747)
+++ trunk/lit/ChangeLog	2020-06-29 22:18:30 UTC (rev 748)
@@ -1,3 +1,9 @@
+2020-06-29  Ulrich M\"uller  <karl at freefriends.org>
+
+	* tex4ht-htcmd.c (err_i, err_arg): use ("%s", warn_err_mssg[n])
+	 for the sake of -Werror=format-security.
+	 http://puszcza.gnu.org.ua/bugs/?472
+
 2020-06-23 Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-docbook.tex (docbook.4ht): don't print filename in BibLaTeX

Modified: trunk/lit/tex4ht-htcmd.tex
===================================================================
--- trunk/lit/tex4ht-htcmd.tex	2020-06-23 10:04:56 UTC (rev 747)
+++ trunk/lit/tex4ht-htcmd.tex	2020-06-29 22:18:30 UTC (rev 748)
@@ -9,8 +9,8 @@
 % forward slash into a single or double backslash for OPTFLAG set to
 % -slash or -dslash respectively.
 %
-% Copyright (C) 2009-2010 TeX Users Group
-% Copyright (C) 1996-2009 Eitan M. Gurari
+% Copyright 2009-2020 TeX Users Group
+% Copyright 1996-2009 Eitan M. Gurari
 % Released under LPPL 1.3c+.
 % See tex4ht-cpright.tex for license text.
 
@@ -66,8 +66,8 @@
 
 \<htcmd.c\><<<
 /* htcmd.c (`version), generated from `jobname.tex
-   Copyright (C) 2009-2010 TeX Users Group
-   Copyright (C) `CopyYear.1996. Eitan M. Gurari
+   Copyright 2009-2020 TeX Users Group
+   Copyright `CopyYear.1996. Eitan M. Gurari
    `<TeX4ht copyright`> */
 `<htcmd.h`>
 `<defines`>
@@ -677,7 +677,7 @@
 static void err_i(n)      int  n
 
 ;{  (IGNORED) fprintf(stderr,"--- error --- ");
-   (IGNORED) fprintf(stderr, warn_err_mssg[n]);
+    (IGNORED) fprintf(stderr, "%s", warn_err_mssg[n]);
    exit(EXIT_FAILURE);  
 }
 >>>
@@ -693,7 +693,7 @@
 static void err_arg(n)      int  n
 
 ;{  (IGNORED) fprintf(stderr,"--- error --- ");
-   (IGNORED) fprintf(stderr, warn_err_mssg[n]);
+    (IGNORED) fprintf(stderr, "%s", warn_err_mssg[n]);
    exit(EXIT_FAILURE);  
 }
 >>>



More information about the tex4ht-commits mailing list.