mirror of https://github.com/openssl/openssl.git
test/mem_alloc_test.c: tfix in test_xaligned_alloc
Change "=" to "==" in "if ((exp == EXP_NONNULL) ...".
Fixes: d090695101
"test: add a sanity test for memory allocation functions"
Resolves: https://scan5.scan.coverity.com/#/project-view/65279/10222?selectedIssue=1662047
Resolves: https://scan5.scan.coverity.com/#/project-view/65279/10222?selectedIssue=1662049
Related: https://github.com/openssl/project/issues/1317
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28238)
This commit is contained in:
parent
2b76895152
commit
a0a73f52ad
|
@ -698,7 +698,7 @@ static int test_xaligned_alloc(const bool array, const bool macro,
|
|||
#if !defined(OPENSSL_SMALL_FOOTPRINT)
|
||||
if (IS_FAIL(exp) && !TEST_ptr_null(freeptr))
|
||||
res = 0;
|
||||
if ((exp = EXP_NONNULL) && !TEST_ptr(freeptr))
|
||||
if ((exp == EXP_NONNULL) && !TEST_ptr(freeptr))
|
||||
res = 0;
|
||||
#else /* OPENSSL_SMALL_FOOTPRINT */
|
||||
if (!TEST_ptr_null(ret) || !TEST_ptr_null(freeptr))
|
||||
|
|
Loading…
Reference in New Issue