Re: [PATCH] sha1dc: fix issues with a big endian platform
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 17, 2017, 07:09 UTC
- Message-ID
- <xmqqk25gvu12.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CACBZZX6cCjorisOn9qyrDH9L_MtKAsLLW=q1_htuaJ+E0QK9rg@mail.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 13 quoted lines
> On Wed, May 17, 2017 at 7:39 AM, Junio C Hamano <gitster@pobox.com> wrote:
>> From: Marc Stevens <marc@marc-stevens.nl>
>>
>> Some big-endian platforms define _BIG_ENDIAN, which the test at the
>> beginning of file has missed. Also, when the input is not aligned,
>> some platforms trigger SIGBUS.
>>
>> This change corresponds to 33a694a9 ("Fix issues with a big endian
>> platform", 2017-05-15) in the history of the upstream repository
>> https://github.com/cr-marcstevens/sha1collisiondetection
>
> Then why not just update sha1dc from upstream instead of
> cherry-picking one patch from them?See the original message upthread. I did the cherry-pick simply because that was what Marc instructed the patch recipient to do ;-).