author | Erik Faye-Lund <kusmabite@gmail.com> | |
Mon, 23 Mar 2009 12:53:08 +0000 (12:53 +0000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 19 Apr 2009 19:29:26 +0000 (12:29 -0700) | ||
commit | 426193c025eb76125a99b3fe143eea50e849f9ca | |
tree | 85eebe940062233481c43af23618c98ad60c4a6e | tree | snapshot |
parent | 38124d8f3120b8e189760376b0a93cad6f3c475a | commit | diff |
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>
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 | diff | blob | history | |
t/t9301-fast-export.sh | diff | blob | history |