aboutsummaryrefslogtreecommitdiff
path: root/builtin-blame.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-02-08 21:54:10 -0800
committerJunio C Hamano <gitster@pobox.com>2010-02-08 21:54:10 -0800
commit105a6339d8454d3856099f6ccea14435a05e2268 (patch)
treeae998ef88c0b1cd495c1fd354902e6d9a74e8974 /builtin-blame.c
parent720c9f7bda20d8f307745772374647c1a2076b3d (diff)
parente33cc592deae8132936eea119554799e1039bc0f (diff)
downloadgit-105a6339d8454d3856099f6ccea14435a05e2268.tar.gz
git-105a6339d8454d3856099f6ccea14435a05e2268.tar.xz
Merge branch 'maint'
* maint: blame: prevent a segv when -L given start > EOF git-push: document all the status flags used in the output Fix parsing of imap.preformattedHTML and imap.sslverify git-add documentation: Fix shell quoting example
Diffstat (limited to 'builtin-blame.c')
-rw-r--r--builtin-blame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-blame.c b/builtin-blame.c
index 6408ec8ee..10f7eacf6 100644
--- a/builtin-blame.c
+++ b/builtin-blame.c
@@ -2433,7 +2433,7 @@ parse_done:
if (top < 1)
top = lno;
bottom--;
- if (lno < top)
+ if (lno < top || lno < bottom)
die("file %s has only %lu lines", path, lno);
ent = xcalloc(1, sizeof(*ent));