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.23k stars 799 forks source link

alloc a buffer for NULL pointer #7646

Closed kojo1 closed 3 weeks ago

kojo1 commented 3 weeks ago

Description

allocate a buff when *pp is NULL for OpenSSL compatibility Guarded by WOLFSSL_I2D_ECDSA_SIG_ALLOC for the backward compatibilitiy.

Fixes zd#17695

Testing

Added the case in test_wolfSSL_ECDSA_SIG

Checklist