Re: [AD] [PATCH] Solaris Fixes and dev notes

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Sun, 2005-06-05 at 12:03 -0500, Shawn Walker wrote:

> 
> In my case NULL values were being passed as arguments to AL_TRACE,
> which in turn was passing them to vsprintf, vsprintf assumes that the
> string values you pass it are valid strings. As a result, I get a
> segfault when it attempts to call strlen on the string data that was
> passed in. So the changes are needed. I would bet that the (null)
> behaviour you see is not something that you can rely on across all
> platforms.
> 

Good to know. I pass NULL to %s for printf style functions all the
time.. now I know, they will all crash on Solaris. Oh well :P

I just applied that part of the patch to CVS (slightly modified).

-- 
Elias Pschernig <elias@xxxxxxxxxx>





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/