mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-11 00:40:55 +02:00
27b1a40bdd
This branch widened test_wolfSSL_X509V3_EXT's guard from OPENSSL_ALL to (OPENSSL_EXTRA || OPENSSL_ALL). The Authority Info Access sub-test frees its aia stack with wolfSSL_sk_ACCESS_DESCRIPTION_pop_free(aia, NULL), relying on the stack's type-based element free - but wolfssl_sk_get_free_func() only wires up wolfSSL_ACCESS_DESCRIPTION_free for STACK_TYPE_ACCESS_DESCRIPTION under OPENSSL_ALL. In an OPENSSL_EXTRA-only build (now reachable) the NULL callback frees the stack nodes but leaks each ACCESS_DESCRIPTION (struct + method OBJ + location GENERAL_NAME + URI string): 370 bytes, caught by ASAN/valgrind. Pass wolfSSL_ACCESS_DESCRIPTION_free explicitly (available under OPENSSL_EXTRA); correct under OPENSSL_ALL too. Verified leak-free under ASAN with the failing config (--enable-opensslextra --enable-crl ... --disable-fastmath).
Before creating any new configure files (.conf) read the CONF_FILES_README.md