Re: [PATCH 1/2] index-pack: allocate NUL byte at the buffer end
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 2, 2008, 01:06 UTC
- Message-ID
- <7vablix7ch.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <12044064822655-git-send-email-mkoegler@auto.tuwien.ac.at>
Martin Koegler <mkoegler@auto.tuwien.ac.at> writes:
> Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at> > --- > Other parts of git add a NUL to buffers as safty measure, so why not index-pack/ > unpack-objects too?
Perhaps because nobody other than index-pack itself accesses it as if it is a NUL terminated buffer?