diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-11-21 22:57:44 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-11-21 22:57:44 +0900 |
commit | b4eafbcdb84fc406bff37f06fdf6310aca7d0249 (patch) | |
tree | 89f6f96f46f64695ac84ad9a49e14017e573ef77 /rerere.c | |
parent | Merge branch 'js/mingw-o-append' into maint (diff) | |
parent | rerere: avoid buffer overrun (diff) | |
download | tgif-b4eafbcdb84fc406bff37f06fdf6310aca7d0249.tar.xz |
Merge branch 'en/rerere-multi-stage-1-fix' into maint
A corner case bugfix in "git rerere" code.
* en/rerere-multi-stage-1-fix:
rerere: avoid buffer overrun
t4200: demonstrate rerere segfault on specially crafted merge
Diffstat (limited to 'rerere.c')
-rw-r--r-- | rerere.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -533,7 +533,7 @@ static int check_one_conflict(int i, int *type) } *type = PUNTED; - while (ce_stage(active_cache[i]) == 1) + while (i < active_nr && ce_stage(active_cache[i]) == 1) i++; /* Only handle regular files with both stages #2 and #3 */ |