Re: [PATCH v2] receive-pack: not receive pack file with large object
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 11, 2021, 18:35 UTC
- Message-ID
- <xmqqzgqaleux.fsf@gitster.g>
- In-Reply-To
- <20211111030302.75694-1-hanxin.hx@alibaba-inc.com>
Han Xin <chiyutianyi@gmail.com> writes:
Show 8 quoted lines
>> @@ -2582,8 +2585,6 @@ int read_loose_object(const char *path, >> char hdr[MAX_HEADER_LEN]; >> unsigned long *size = oi->sizep; >> >> - *contents = NULL; >> - > > Deleting "*contents = NULL;" here will cause a memory free error.
Good find. I see in the discussion downthread we have a band-aid for this issue already ;-)
Thanks.