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:22:49 +0000 (23:22 +0100)
commit532ee6e056f021b76e0954655749ddf0bce1e0e3
tree7a9fb7b004357fa7082a4bf922804c191eb99035
parent08db2cc9c14b397950b4e7f28ed68f060f0a9434
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