summaryrefslogtreecommitdiff
path: root/tree-diff.c
diff options
context:
space:
mode:
authorPatryk Obara <patryk.obara@gmail.com>2017-08-18 20:33:13 +0200
committerJunio C Hamano <gitster@pobox.com>2017-08-18 12:18:10 -0700
commitbc65d2262d7c676cc7a0100d8be84a0690e10702 (patch)
treec976febc8bc39eb48c45a8ce7fc2e7c629b0544b /tree-diff.c
parent9a9340329a7151697c943794369950115963879f (diff)
downloadgit-bc65d2262d7c676cc7a0100d8be84a0690e10702.tar.gz
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 'tree-diff.c')
0 files changed, 0 insertions, 0 deletions