wolfSSL / wolfssl

The wolfSSL library is a small, fast, portable implementation of TLS/SSL for embedded devices to the cloud. wolfSSL supports up to TLS 1.3 and DTLS 1.3!
https://www.wolfssl.com
GNU General Public License v2.0
2.36k stars 834 forks source link

Adding missing checks missing initialization of sp_int/mp_int #8209

Closed gasbytes closed 5 hours ago

gasbytes commented 7 hours ago

This pull request includes a small but important change to the wolfcrypt/src/dsa.c file. The change ensures that memory is properly freed in the wc_DsaVerify_ex function when either MP_INIT_E or MEMORY_E errors occur. Fixed zd#18969.