diff options
author | Andy Polyakov <appro@openssl.org> | 2015-12-02 14:26:03 +0100 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2015-12-10 12:36:25 +0100 |
commit | 44bf7119d67272dbbe3a96c58b842aff8d93c1b4 (patch) | |
tree | e157c5902f27899ef27dcd40e7ffcdd7d381bae7 | |
parent | c7b5b9f4b1ec24743da20926f50418ba9fa92e87 (diff) |
modes/ocb128.c: fix overstep.
Reviewed-by: Richard Levitte <levitte@openssl.org>
-rw-r--r-- | crypto/modes/ocb128.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++; } |