From 3fd6b9f6d4d2e010e4c8ab7d01892eee45139597 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 29 May 2003 20:59:30 +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);