From: J. Scott Edwards Date: Sat, 15 Mar 2008 11:25:08 +0000 (+0100) Subject: sha512_process_bytes: fix a bug in processing a buffer where length&64 != 0 X-Git-Tag: v6.11~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c960211fe77c360e78172109365a776836dc5802;p=thirdparty%2Fcoreutils.git sha512_process_bytes: fix a bug in processing a buffer where length&64 != 0 * gl/lib/sha512.c (sha512_process_bytes): s/63/127/. --- diff --git a/gl/lib/sha512.c b/gl/lib/sha512.c index e0109f80fa..4a41cb0613 100644 --- a/gl/lib/sha512.c +++ b/gl/lib/sha512.c @@ -345,7 +345,7 @@ sha512_process_bytes (const void *buffer, size_t len, struct sha512_ctx *ctx) if (ctx->buflen > 128) { - sha512_process_block (ctx->buffer, ctx->buflen & ~63, ctx); + sha512_process_block (ctx->buffer, ctx->buflen & ~127, ctx); ctx->buflen &= 127; /* The regions in the following copy operation cannot overlap. */