PR: 630
authorRichard Levitte <levitte@openssl.org>
Thu, 29 May 2003 20:59:38 +0000 (20:59 +0000)
committerRichard 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

index 687c00c79229c92686093f1eb3010adeb74b9d68..3983ac8e5f1a1fb0c727ecbe7fd7ee44dee75ab2 100644 (file)
@@ -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);