diff options
author | René Scharfe <l.s.r@web.de> | 2017-06-27 19:03:47 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-27 10:59:38 -0700 |
commit | 44e5471a8d8ec5f04058220f8b91513b5b5accaa (patch) | |
tree | 51047bfed6263f86d712faac43760124249bb6e1 /khash.h | |
parent | apply: check git diffs for missing old filenames (diff) | |
download | tgif-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 'khash.h')
0 files changed, 0 insertions, 0 deletions