bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: security format patch


From: Paul Eggert
Subject: Re: security format patch
Date: Mon, 02 Dec 2013 11:40:29 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0

On 12/02/2013 11:18 AM, Eric Blake wrote:
> So the correct fix is the use
> of #pragma GCC diagnostic to shut up the compiler's warning

Another possibility is to use obscurer code that GCC
can't figure out; that's what we did for the empty-string
warning.

I can't reproduce the problem on my
platform (Fedora 19 with its GCC 4.8.2).  Here's how I
tried to reproduce it:

./gnulib-tool --create-testdir --dir foo xvasprintf
cd foo
./configure CFLAGS='-Wformat -Werror=format-security -O2'
make
make check




reply via email to

[Prev in Thread] Current Thread [Next in Thread]