From: Junio C Hamano Date: Thu, 07 Apr 2016 18:32:39 GMT Subject: Re: git segfaults on older Solaris releases Message-ID: In-Reply-To: <5706A489.7070101@jupiterrise.com> "Tom G. Christensen" writes: > The reason for the crash is simple, a null value was passed to the 's' > format for the *printf family of functions. > ... > Passing a null value to the 's' format is explicitly documented as > giving undefined results on Solaris, even on Solaris 11(2). Do you mean *printf("...%.*s...", ..., 0, NULL, ...) i.e. you saw a NULL passed only when we use %.*s with width=0?