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> | |
Mon, 30 Mar 2009 02:48:43 +0000 (19:48 -0700) | ||
commit | c0582c53bcf4e83bba70e1ad23abbad31f96ebc8 | |
tree | bd5a8222f3352aba250a1777a764ccffc194e330 | tree | snapshot |
parent | 2d07f6d4b728d19d115b89123224268718f34efd | 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 |