Project

General

Profile

Actions

Bug #9644

closed

Double-free in crypto tests on failure

Added by Jason King almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
tests
Start date:
2018-07-06
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

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.

Actions

Also available in: Atom PDF