[gtkada] Patch: Fix unsafe use of g_snprintf.

Emmanuel Briot briot at adacore.com
Mon Dec 9 09:46:50 CET 2013


> Fedora is preparing to turn on a GCC option that makes unsafe use of
> printf-like functions a compile-time error. Four cases were found in the
> GTKada source. I don't know if it can be proven impossible for percent
> characters to occur in the strings in these four cases, but copying
> strings with a function made for copying strings makes the code more
> robust.


Thank you, patch included in the development version of GtkAda.
That said, the gtkextra packages have not been updated in several years
and likely not all that compatible with gtk3, so we do not recommend using
them in newer code.

regards
Emmanuel


More information about the gtkada mailing list