commit | 8cd5d436394f5aeb7c500f3c695aba8d64b10ded | [log] [tgz] |
---|---|---|
author | Hanno Becker <hanno.becker@arm.com> | Fri Sep 08 10:35:32 2017 +0100 |
committer | Hanno Becker <hanno.becker@arm.com> | Fri Sep 08 10:35:32 2017 +0100 |
tree | c532ee6e333c167593187fdb43a3e49a33089b85 | |
parent | a75a4591430919a6eb3d430aca396044fe3816d4 [diff] |
Initialize RSA context in RSA test suite before first potentially failing operation The function `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.