projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e07229
)
PR: 1967
author
Dr. Stephen Henson
<steve@openssl.org>
Tue, 30 Jun 2009 15:10:54 +0000
(15:10 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Tue, 30 Jun 2009 15:10:54 +0000
(15:10 +0000)
Submitted by: David McCullough <david_mccullough@securecomputing.com>
Approved by: steve@openssl.org
Don't go past end of params array.
crypto/engine/eng_cryptodev.c
patch
|
blob
|
history
diff --git
a/crypto/engine/eng_cryptodev.c
b/crypto/engine/eng_cryptodev.c
index ab38cd52f09708d979b91a9182e1ef6d34f7bfd9..4f2470b3f561ae11d28efb12702da9b8279addb4 100644
(file)
--- 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;