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:
4f17dfc
)
PR: 630
author
Richard Levitte
<levitte@openssl.org>
Thu, 29 May 2003 20:59:38 +0000
(20:59 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Thu, 29 May 2003 20:59:38 +0000
(20:59 +0000)
Avoid looking outside the key_data array.
crypto/des/destest.c
patch
|
blob
|
history
diff --git
a/crypto/des/destest.c
b/crypto/des/destest.c
index 687c00c79229c92686093f1eb3010adeb74b9d68..3983ac8e5f1a1fb0c727ecbe7fd7ee44dee75ab2 100644
(file)
--- a/
crypto/des/destest.c
+++ b/
crypto/des/destest.c
@@
-431,7
+431,7
@@
int main(int argc, char *argv[])
#ifndef LIBDES_LIT
printf("Doing ede ecb\n");
- for (i=0; i<(NUM_TESTS-
1
); i++)
+ for (i=0; i<(NUM_TESTS-
2
); i++)
{
DES_set_key_unchecked(&key_data[i],&ks);
DES_set_key_unchecked(&key_data[i+1],&ks2);