OpenSSH -current fails regression on Solaris 8, sshd dumps core

Sam Reynolds cloud at chool.com
Sun Sep 22 04:20:19 EST 2002


Darren Tucker wrote:

[snip]

 >The NULL doesn't seem to bother snprintf on Linux or HP-UX. I don't 
 >know if it's valid to pass a NULL as an argument to "%s".

Hi,  I believe the behavior of passing NULL to %s is undefined.
NULL can be (but isn't necessarily) a macro expanding to
(void*)0 and since sprintf is a variadic function, one would
need an explicit cast to the appropriate type.

[snip]

Hope this helps

-- 
Sam Reynolds
cloud at chool.com




More information about the openssh-unix-dev mailing list