summaryrefslogtreecommitdiff
path: root/t/t2006-checkout-index-basic.sh
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2017-06-27 19:03:47 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-06-27 10:59:38 -0700
commit44e5471a8d8ec5f04058220f8b91513b5b5accaa (patch)
tree51047bfed6263f86d712faac43760124249bb6e1 /t/t2006-checkout-index-basic.sh
parentapply: check git diffs for missing old filenames (diff)
downloadtgif-44e5471a8d8ec5f04058220f8b91513b5b5accaa.tar.xz
apply: check git diffs for invalid file modes
An empty string as mode specification is accepted silently by git apply, as Vegard Nossum found out using AFL. It's interpreted as zero. Reject such bogus file modes, and only accept ones consisting exclusively of octal digits. Reported-by: Vegard Nossum <vegard.nossum@oracle.com> Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2006-checkout-index-basic.sh')
0 files changed, 0 insertions, 0 deletions