This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] bfd: rx: fix security warnings
- From: Alan Modra <amodra at gmail dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: binutils at sourceware dot org, dj at redhat dot com
- Date: Tue, 20 Nov 2012 12:12:29 +1030
- Subject: Re: [PATCH] bfd: rx: fix security warnings
- References: <201211191911.56994.vapier@gentoo.org>
On Mon, Nov 19, 2012 at 07:11:56PM -0500, Mike Frysinger wrote:
> Index: bfd/elf32-rx.c
> ===================================================================
> RCS file: /cvs/src/src/bfd/elf32-rx.c,v
> retrieving revision 1.21
> diff -u -p -r1.21 elf32-rx.c
> --- bfd/elf32-rx.c 9 Nov 2012 17:00:40 -0000 1.21
> +++ bfd/elf32-rx.c 20 Nov 2012 00:10:47 -0000
> @@ -3040,7 +3040,7 @@ rx_elf_print_private_bfd_data (bfd * abf
> flags = elf_elfheader (abfd)->e_flags;
> fprintf (file, _("private flags = 0x%lx:"), (long) flags);
>
> - fprintf (file, describe_flags (flags));
> + fprintf (file, "%s", describe_flags (flags));
> return TRUE;
> }
>
Now fixed.
--
Alan Modra
Australia Development Lab, IBM