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 <firstname.lastname@example.org> Date: 2018-07-12T23:39:37.000Z 9644 Double-free in crypto tests on failure Reviewed by: Dan McDonald <email@example.com> Reviewed by: Mike Zeller <firstname.lastname@example.org> Reviewed by: Garrett D'Amore <email@example.com> Reviewed by: Andrew Stormont <firstname.lastname@example.org> Reviewed by: Yuri Pankov <email@example.com> Reviewed by: Andy Fiddaman <firstname.lastname@example.org> Reviewed by: Toomas Soome <email@example.com> Approved by: Gordon Ross <firstname.lastname@example.org>