diff options
author | Jeff King <peff@peff.net> | 2015-09-24 17:08:07 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-10-05 11:08:05 -0700 |
commit | cbc8feeaf97db39ff7220c4d1b03e0c3fdd2401c (patch) | |
tree | 25da120e88159ab40aec7646ecc7f1abbd6b091e /GIT-VERSION-GEN | |
parent | drop strcpy in favor of raw sha1_to_hex (diff) | |
download | tgif-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 'GIT-VERSION-GEN')
0 files changed, 0 insertions, 0 deletions