RE: g_log () with NULL arg crashes on Win32



Hi,

On Mon, 2004-05-24 at 10:31, martyn 2 russell bt com wrote:
> > > 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?

	Personally, I think not. It only adds to the common misconception and
confusion that printf ("%s", NULL) is portable.

Cheers,
Mark.




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