parse_tag_buffer: don't parse invalid tags
commita0393ef67679ea7720290bd45d9d628920df59f3
authorMartin Koegler <mkoegler@auto.tuwien.ac.at>
Sun, 6 Jan 2008 19:03:10 +0000 (6 20:03 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Jan 2008 02:41:44 +0000 (6 18:41 -0800)
treefc6b9ce6502087710dadcaa4b2d1f65262c77a3c
parent5162e69732d13dd079919a389a6ace8878aad716
parse_tag_buffer: don't parse invalid tags

The current tag parsing code can access memory outside the tag buffer,
if \n are missing. This patch prevent this behaviour.

Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
tag.c