From: Dr. Stephen Henson Date: Tue, 30 Jun 2009 15:10:54 +0000 (+0000) Subject: PR: 1967 X-Git-Tag: OpenSSL_1_0_0-beta3~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e70c81ed9f54353d2fec4e5ef163c3810d58acf;p=openssl PR: 1967 Submitted by: David McCullough Approved by: steve@openssl.org Don't go past end of params array. --- diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c index ab38cd52f0..4f2470b3f5 100644 --- a/crypto/engine/eng_cryptodev.c +++ b/crypto/engine/eng_cryptodev.c @@ -681,7 +681,7 @@ zapparams(struct crypt_kop *kop) { int i; - for (i = 0; i <= kop->crk_iparams + kop->crk_oparams; i++) { + for (i = 0; i < kop->crk_iparams + kop->crk_oparams; i++) { if (kop->crk_param[i].crp_p) free(kop->crk_param[i].crp_p); kop->crk_param[i].crp_p = NULL;