Re: git segfaults on older Solaris releases
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 7, 2016, 18:32 UTC
- Message-ID
- <xmqqoa9lz2uw.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <5706A489.7070101@jupiterrise.com>
"Tom G. Christensen" <tgc@jupiterrise.com> writes:
Show 5 quoted lines
> 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?