Andreas Schwab <[EMAIL PROTECTED]> wrote:
> Jim Meyering <[EMAIL PROTECTED]> writes:
>
>> The bug strikes whenever ctx->buflen|64 != 0.
>
> Btw, ctx->buflen|64 != 0 is always true because it is the same as
> ctx->buflen|(64 != 0).

Shameful ;-)  I meant "ctx->buflen&64", of course.

>> -      sha256_process_block (ctx->buffer, ctx->buflen & ~63, ctx);
>> -
>>        ctx->buflen &= 63;
>> +      sha256_process_block (ctx->buffer, ctx->buflen, ctx);
>
> I hope you are aware of that a & 63 is different from a & ~63?

Of course.  My mistake was in not *seeing* that "63 != ~63"

Thanks.  So I won't be making that latter change.


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to