aboutsummaryrefslogtreecommitdiff
path: root/config.mak.in
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2017-06-27 19:03:47 +0200
committerJunio C Hamano <gitster@pobox.com>2017-06-27 10:59:38 -0700
commit44e5471a8d8ec5f04058220f8b91513b5b5accaa (patch)
tree51047bfed6263f86d712faac43760124249bb6e1 /config.mak.in
parent4269974179ff4fc2a970c972330ba5b7f26a323b (diff)
downloadgit-44e5471a8d8ec5f04058220f8b91513b5b5accaa.tar.gz
git-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 'config.mak.in')
0 files changed, 0 insertions, 0 deletions