RE: g_log () with NULL arg crashes on Win32



> > If this is not a problem on Linux, it worked before on Windows and
> > printf supports this feature, I would say this is a bug.
> 
> 	This feature is simply not something which is portable.
> 
> 	printf ("%s", NULL) was one of the main sources of crashes when
getting
> GNOME going on Solaris.
> 

We have written a similar library to Glib here, and have had the same
problem with printf on Solaris in the past; as a result, we had to
provide our own implementation of printf.

Considering Glib strives to work across platforms, wouldn't this be the
best way for g_log to pride a consistent solution?

Regards,
Martyn



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