summaryrefslogtreecommitdiff
path: root/check_bindir
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2015-09-24 17:08:07 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-10-05 11:08:05 -0700
commitcbc8feeaf97db39ff7220c4d1b03e0c3fdd2401c (patch)
tree25da120e88159ab40aec7646ecc7f1abbd6b091e /check_bindir
parentdrop strcpy in favor of raw sha1_to_hex (diff)
downloadtgif-cbc8feeaf97db39ff7220c4d1b03e0c3fdd2401c.tar.xz
color: add overflow checks for parsing colors
Our color parsing is designed to never exceed COLOR_MAXLEN bytes. But the relationship between that hand-computed number and the parsing code is not at all obvious, and we merely hope that it has been computed correctly for all cases. Let's mark the expected "end" pointer for the destination buffer and make sure that we do not exceed it. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'check_bindir')
0 files changed, 0 insertions, 0 deletions