[PATCH] bfd: rx: fix security warnings

Alan Modra amodra@gmail.com
Tue Nov 20 01:42:00 GMT 2012


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



More information about the Binutils mailing list