From 44bf7119d67272dbbe3a96c58b842aff8d93c1b4 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Wed, 2 Dec 2015 14:26:03 +0100 Subject: [PATCH] modes/ocb128.c: fix overstep. Reviewed-by: Richard Levitte --- crypto/modes/ocb128.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; } -- 2.25.1