svn commit: r276471 - in stable: 10/contrib/binutils/gas/config 7/contrib/binutils/gas/config 8/contrib/binutils/gas/config 9/contrib/binutils/gas/config

Dimitry Andric dim at FreeBSD.org
Wed Dec 31 16:28:18 UTC 2014


Author: dim
Date: Wed Dec 31 16:28:16 2014
New Revision: 276471
URL: https://svnweb.freebsd.org/changeset/base/276471

Log:
  MFC r276346:
  
  In contrib/binutils/gas/config/tc-ppc.c, fix a few -Wformat-security
  warnings.

Modified:
  stable/9/contrib/binutils/gas/config/tc-ppc.c
Directory Properties:
  stable/9/contrib/binutils/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/10/contrib/binutils/gas/config/tc-ppc.c
  stable/7/contrib/binutils/gas/config/tc-ppc.c
  stable/8/contrib/binutils/gas/config/tc-ppc.c
Directory Properties:
  stable/10/   (props changed)
  stable/7/contrib/binutils/   (props changed)
  stable/8/   (props changed)
  stable/8/contrib/   (props changed)
  stable/8/contrib/binutils/   (props changed)

Modified: stable/9/contrib/binutils/gas/config/tc-ppc.c
==============================================================================
--- stable/9/contrib/binutils/gas/config/tc-ppc.c	Wed Dec 31 16:15:43 2014	(r276470)
+++ stable/9/contrib/binutils/gas/config/tc-ppc.c	Wed Dec 31 16:28:16 2014	(r276471)
@@ -1548,7 +1548,7 @@ ppc_insert_operand (unsigned long insn,
       errmsg = NULL;
       insn = (*operand->insert) (insn, (long) val, ppc_cpu, &errmsg);
       if (errmsg != (const char *) NULL)
-	as_bad_where (file, line, errmsg);
+	as_bad_where (file, line, "%s", errmsg);
     }
   else
     insn |= ((long) val & operand->bitm) << operand->shift;
@@ -2279,7 +2279,7 @@ md_assemble (char *str)
 	{
 	  insn = (*operand->insert) (insn, 0L, ppc_cpu, &errmsg);
 	  if (errmsg != (const char *) NULL)
-	    as_bad (errmsg);
+	    as_bad ("%s", errmsg);
 	  continue;
 	}
 
@@ -2292,7 +2292,7 @@ md_assemble (char *str)
 	    {
 	      insn = (*operand->insert) (insn, 0L, ppc_cpu, &errmsg);
 	      if (errmsg != (const char *) NULL)
-		as_bad (errmsg);
+		as_bad ("%s", errmsg);
 	    }
 	  if ((operand->flags & PPC_OPERAND_NEXT) != 0)
 	    next_opindex = *opindex_ptr + 1;


More information about the svn-src-stable-9 mailing list