[EMAIL PROTECTED] wrote:

> >On Solaris, if a NULL argument is passed to printf type function for %s 
> >format the program crashes
> . On Linux it does not. Would it be possible to change Solaris behavior to be 
> similar to Linux?
>
> Yes, fix the code which passes NULL to printf().
>
> Having code stumble on in the presence of bugs is a bad idea.
>
> The only way to "fix" this behaviour in Solaris is to map something at
> address zero, e.g., by preloading the [EMAIL PROTECTED] dynamic object.
>
> What does glibc print when confronted with a NULL?

SunOS 4.x did print "(null)" in such a case...

I believe that Linux does the same.

Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
       [EMAIL PROTECTED]                (uni)  
       [EMAIL PROTECTED]     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to