diff options
author | Patryk Obara <patryk.obara@gmail.com> | 2017-08-18 20:33:13 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-18 12:18:10 -0700 |
commit | bc65d2262d7c676cc7a0100d8be84a0690e10702 (patch) | |
tree | c976febc8bc39eb48c45a8ce7fc2e7c629b0544b /diffcore-delta.c | |
parent | 9a9340329a7151697c943794369950115963879f (diff) | |
download | git-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 'diffcore-delta.c')
0 files changed, 0 insertions, 0 deletions