Double-free in crypto tests on failure
Upstream of Joyent OS-6924.
During the testing of OS-6325, it was discovered that if the get_hsession_by_mech function fails (such as due to an unsupported mechanism), it will free the crypto_op_t struct, which will then get freed again at the end of test_encrypt_common.
Updated by Electric Monk almost 4 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 3c4342ab5aea1aeb83d0d4e34d215f0e113daba1 Author: Jason King <email@example.com> Date: 2018-07-12T23:39:37.000Z 9644 Double-free in crypto tests on failure Reviewed by: Dan McDonald <firstname.lastname@example.org> Reviewed by: Mike Zeller <email@example.com> Reviewed by: Garrett D'Amore <firstname.lastname@example.org> Reviewed by: Andrew Stormont <email@example.com> Reviewed by: Yuri Pankov <firstname.lastname@example.org> Reviewed by: Andy Fiddaman <email@example.com> Reviewed by: Toomas Soome <firstname.lastname@example.org> Approved by: Gordon Ross <email@example.com>