This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix a bunch of print format errors in gcc-5
- From: Jakub Jelinek <jakub at redhat dot com>
- To: David Howells <dhowells at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 12 Feb 2015 22:29:46 +0100
- Subject: Re: [PATCH] Fix a bunch of print format errors in gcc-5
- Authentication-results: sourceware.org; auth=none
- References: <26328 dot 1423755535 at warthog dot procyon dot org dot uk>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Feb 12, 2015 at 03:38:55PM +0000, David Howells wrote:
> Here's a patch that inserts "%s", into a number of printf-format calls to
> avoid:
>
> error: format not a string literal and no format arguments
> [-Werror=format-security]
>
> and to avoid reads on uninitialised data should a string with one or more "%"
> in it be processed.
I wrote a ChangeLog entry for this and committed it for you.
Jakub