[Devel] serd-0.1.0.c: bad call to snprintf

David Binderman dcb314 at hotmail.com
Sun Dec 11 07:15:48 PST 2011

Hello there,

I just tried to compile lv2core-4.0 with compiler flag

The compiler said

In function 'snprintf',
    inlined from 'write_text' at ../serd-0.1.0.c:2386:12:
/usr/include/bits/stdio2.h:65:3: warning: call to __builtin___snprintf_chk will always overflow destination buffer [enabled by default]

The source code is

           snprintf(escape, 11, "\\U%08X", c);

Suggest new code

           snprintf(escape, 10, "\\U%08X", c);


David Binderman

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lv2plug.in/pipermail/devel-lv2plug.in/attachments/20111211/accbb83f/attachment-0001.htm>

More information about the Devel mailing list