summaryrefslogtreecommitdiff
path: root/builtin/notes.c
diff options
context:
space:
mode:
authorLibravatar Patryk Obara <patryk.obara@gmail.com>2017-08-18 20:33:13 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-08-18 12:18:10 -0700
commitbc65d2262d7c676cc7a0100d8be84a0690e10702 (patch)
treec976febc8bc39eb48c45a8ce7fc2e7c629b0544b /builtin/notes.c
parentcommit: replace the raw buffer with strbuf in read_graft_line (diff)
downloadtgif-bc65d2262d7c676cc7a0100d8be84a0690e10702.tar.xz
commit: allocate array using object_id size
struct commit_graft aggregates an array of object_id's, which have size >= GIT_MAX_RAWSZ bytes. This change prevents memory allocation error when size of object_id is larger than GIT_SHA1_RAWSZ. Signed-off-by: Patryk Obara <patryk.obara@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/notes.c')
0 files changed, 0 insertions, 0 deletions