mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-03-25 16:19:18 +00:00
The function `mbedtls_rsa_gen_key` from `test_suite_rsa.function` initialized a stack allocated RSA context only after seeding the CTR DRBG. If the latter operation failed, the cleanup code tried to free the uninitialized RSA context, potentially resulting in a segmentation fault. Fixes one aspect of #1023.
24 KiB
24 KiB