Re: [PATCH 1/3] validate_headref: NUL-terminate HEAD buffer
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 27, 2017, 07:28 UTC
- Message-ID
- <xmqq60c44n3r.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20170927071625.3dtljf5oaiaa5pjq@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> I had the same concern, but actually truncation is not a problem here > (for a symlink or a symref). We are only seeing if the contents look > vaguely correct, so really we never parse past "refs/" in either case.
Ahh, OK.
It seems that at least for this week, my reviews always show you thought things more thoroughly than I did, which is good in a weird sort of sense ;-)