summaryrefslogtreecommitdiff
path: root/compat/mmap.c
diff options
context:
space:
mode:
authorLibravatar Eric Sunshine <sunshine@sunshineco.com>2018-08-02 23:07:49 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-08-03 08:52:05 -0700
commit65bb21e77e7f12e215974018b4b1febcb87c85c9 (patch)
treeee713d10567e5143518c9ae4213ea62edea4ab6c /compat/mmap.c
parentGit 2.18 (diff)
downloadtgif-65bb21e77e7f12e215974018b4b1febcb87c85c9.tar.xz
color: protect against out-of-bounds reads and writes
want_color_fd() is designed to work only with standard output and error file descriptors and stores information about each descriptor in an array. However, it doesn't verify that the passed-in descriptor lives within that set, which, with a buggy caller, could lead to access or assignment outside the array bounds. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Acked-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/mmap.c')
0 files changed, 0 insertions, 0 deletions