Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Dec 2014 16:28:19 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   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
Message-ID:  <201412311628.sBVGSJG6030748@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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/10/contrib/binutils/gas/config/tc-ppc.c
Directory Properties:
  stable/10/   (props changed)

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

Modified: stable/10/contrib/binutils/gas/config/tc-ppc.c
==============================================================================
--- stable/10/contrib/binutils/gas/config/tc-ppc.c	Wed Dec 31 16:15:43 2014	(r276470)
+++ stable/10/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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412311628.sBVGSJG6030748>