From: Andy Polyakov Date: Wed, 2 Dec 2015 13:26:03 +0000 (+0100) Subject: modes/ocb128.c: fix overstep. X-Git-Tag: OpenSSL_1_1_0-pre1~11 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=44bf7119d67272dbbe3a96c58b842aff8d93c1b4;p=oweals%2Fopenssl.git modes/ocb128.c: fix overstep. Reviewed-by: Richard Levitte --- diff --git a/crypto/modes/ocb128.c b/crypto/modes/ocb128.c index 620675541d..3a3f7a8d93 100644 --- a/crypto/modes/ocb128.c +++ b/crypto/modes/ocb128.c @@ -162,7 +162,7 @@ static OCB_BLOCK *ocb_lookup_l(OCB128_CONTEXT *ctx, size_t idx) if (!ctx->l) return NULL; } - while (l_index <= idx) { + while (l_index < idx) { ocb_double(ctx->l + l_index, ctx->l + l_index + 1); l_index++; }