diff --git a/crypto/aes/aes-file-encrypt.c b/crypto/aes/aes-file-encrypt.c index 78e2fb90..52d891de 100644 --- a/crypto/aes/aes-file-encrypt.c +++ b/crypto/aes/aes-file-encrypt.c @@ -282,7 +282,7 @@ int main(int argc, char** argv) { Aes aes; byte* key; /* user entered key */ - FILE* inFile; + FILE* inFile = NULL; FILE* outFile = NULL; const char* in; @@ -333,7 +333,7 @@ int main(int argc, char** argv) printf("Must have both input and output file"); printf(": -i filename -o filename\n"); } - else if (ret == 0 && choice != 'n') { + else if (ret == 0 && choice != 'n' && inFile != NULL) { key = malloc(size); /* sets size memory of key */ ret = NoEcho((char*)key, size); if (choice == 'e') diff --git a/signature/sigtest/eccsiglentest.c b/signature/sigtest/eccsiglentest.c index 1df8dfe9..cec90aff 100644 --- a/signature/sigtest/eccsiglentest.c +++ b/signature/sigtest/eccsiglentest.c @@ -268,11 +268,14 @@ exit: int main(int argc, char** argv) { int ret = 0; - int fileLen; + int fileLen = 0; + int verifyFileLen = 0; + byte* fileBuf = NULL; - int verifyFileLen; byte* verifyFileBuf = NULL; + const char* verify_file = NULL; + enum wc_SignatureType sig_type = WC_SIGNATURE_TYPE_NONE; enum wc_HashType hash_type = WC_HASH_TYPE_NONE; diff --git a/tls/client-tls-cacb b/tls/client-tls-cacb deleted file mode 100755 index 3258865c..00000000 Binary files a/tls/client-tls-cacb and /dev/null differ