From f7f8d82aaa4403d429064ab0bb1ae5ed4e0e617b Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 29 May 2003 20:59:38 +0000 Subject: [PATCH] PR: 630 Avoid looking outside the key_data array. --- crypto/des/destest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1