Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
branch: fix segfault when resolving an invalid HEAD
[gitweb.git]
/
fast-import.c
diff --git
a/fast-import.c
b/fast-import.c
index cdd629d6bc547609daabab6c1f3b73939fddb7b9..6c43a0d37f781294a8844ea52c9ce9728396f456 100644
(file)
--- a/
fast-import.c
+++ b/
fast-import.c
@@
-1193,6
+1193,8
@@
static int tree_content_set(
n = slash1 - p;
else
n = strlen(p);
+ if (!n)
+ die("Empty path component found in input");
for (i = 0; i < t->entry_count; i++) {
e = t->entries[i];