From: Richard Levitte Date: Thu, 29 May 2003 20:59:38 +0000 (+0000) Subject: PR: 630 X-Git-Tag: BEN_FIPS_TEST_1~38^2~87 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f7f8d82aaa4403d429064ab0bb1ae5ed4e0e617b;p=oweals%2Fopenssl.git PR: 630 Avoid looking outside the key_data array. --- diff --git a/crypto/des/destest.c b/crypto/des/destest.c index 687c00c792..3983ac8e5f 100644 --- 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);