[Mageia-dev] broken format-error test ?

Pascal Terjan pterjan at gmail.com
Sun Aug 12 00:41:35 CEST 2012


On Sat, Aug 11, 2012 at 11:32 PM, Guillaume Rousse
<guillomovitch at gmail.com> wrote:
> Hello list.
>
> While trying to rebuild mod_ruby, I get this error:
> mod_ruby.c:507:5: erreur: le format n'est pas une chaīne littérale et pas
> d'argument de format [-Werror=format-security]
>
> The line 505 is;
> vsnprintf(buf, BUFSIZ, fmt, args);
>
> Apparently, the test fails to recognize the 'fmt' variable as the format...

Well, it complains that fmt is a variable, which is the point of the
test, so it is not broken
Only constant formats are allowed


More information about the Mageia-dev mailing list