-
Notifications
You must be signed in to change notification settings - Fork 833
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test api.c: change more tests to use Expect instead of Assert
Changed EXPECT_DECL to start of as TEST_SKIPPED. Modified other EXPECT macros appropriately. Change test functions to not use 'res' when EXPECT_DECL is used. memory.c: wc_MemFailCount_Init(): don't declare variable after a statement conf.c: wolfSSL_TXT_DB_read(): free the whole WOLFSSL_TXT_DB on failure instead of just the memory wolfSSL_CONF_add_string(): pop the value added into section->value (sk) if it can't be pushed onto conf->data wolfSSL_NCONF_load(): free the new value if it wasn't able to be added ocsp.c: wolfSSL_OCSP_cert_to_id(): free the decoded certificate if parsing failed (is freed after use otherwise) free the certificate id on failure and make it NULL and continue freeing other variables pk.c: wolfSSL_RSA_set0_crt_params(): set dmp1, dmq1 and iqmp fields to NULL if setting the internal failed - returns error and caller needs to free the passed in BNs wolfSSL_RSA_set0_factors(): set p and q fields to NULL if setting the internal failed - returns error and caller needs to free the passed in BNs wolfSSL_RSA_set0_key(): set n, e abd d fields to NULL if setting the internal failed - returns error and caller needs to free the passed in BNs x509.c: wolfSSL_X509_set_serialNumber(): explicit NULL checkwolfSSL_X509_REQ_add1_attr_by_NID(): check whether push succeeded and on failure free attribute asn.c: ConfirmSignature(): for DSA, allocate separately to ensure no leak on memory allocation failure. dh.c: wc_DhGenerateParams(): ensure tmp and tmp2 are able to be cleared on error evp.c: wolfSSL_EVP_PKEY_CTX_add1_hkdf_info(): fix realloc use to no leak on failure wolfSSL_EVP_CIPHER_CTX_iv_length(): handle ctx being NULL.
- Loading branch information
Showing
10 changed files
with
4,886 additions
and
5,477 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.