Fix off-by-one errors in ssl_cipher_get_evp()
authorMiod Vallat <miod@openbsd.org>
Wed, 4 Jun 2014 07:59:58 +0000 (03:59 -0400)
committerMatt Caswell <matt@openssl.org>
Sun, 22 Jun 2014 22:14:19 +0000 (23:14 +0100)
commit2841d6ca9f87c2aeb318e6957038864119770e3a
treeebd5c589835f101cd7b975a5578774594c1d45fc
parentcf1b08cdd7005a7e8f8935872a09da5f91d64557
Fix off-by-one errors in ssl_cipher_get_evp()

In the ssl_cipher_get_evp() function, fix off-by-one errors in index validation before accessing arrays.

Bug discovered and fixed by Miod Vallat from the OpenBSD team.

PR#3375
ssl/ssl_ciph.c