commit: allocate array using object_id size
authorPatryk Obara <redacted>
Fri, 18 Aug 2017 18:33:13 +0000 (20:33 +0200)
committerJunio C Hamano <redacted>
Fri, 18 Aug 2017 19:18:10 +0000 (12:18 -0700)
commitbc65d2262d7c676cc7a0100d8be84a0690e10702
treec976febc8bc39eb48c45a8ce7fc2e7c629b0544b
parent9a9340329a7151697c943794369950115963879f
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
commit.c
git clone https://git.99rst.org/PROJECT