Code

builtin-fast-export.c: fix crash on tagged trees
authorErik Faye-Lund <kusmabite@gmail.com>
Mon, 23 Mar 2009 12:53:08 +0000 (12:53 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 19 Apr 2009 19:29:26 +0000 (12:29 -0700)
commit426193c025eb76125a99b3fe143eea50e849f9ca
tree85eebe940062233481c43af23618c98ad60c4a6e
parent38124d8f3120b8e189760376b0a93cad6f3c475a
builtin-fast-export.c: fix crash on tagged trees

If a tag object points to a tree (or another unhandled type), the commit-
pointer is left uninitialized and later dereferenced. This patch adds a
default case to the switch that issues a warning and skips the object.

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fast-export.c
t/t9301-fast-export.sh