Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix double delete bug when using OpenSSL v1.1 or higher
This commit fixes a problem wherein, in the verify_signature API, if OpenSSL version is 1.1 or higher, the call to ECDSA_SIG_set0 assigns memory ownership of R+S to the ECDSA signature, but then still frees them before calling ECDSA_SIG_free, leading to an application crash. Now, those frees will be inhibited in that path, and ECDSA_SIG_free will take care of reclaiming the memory instead. Signed-off-by: Nick Bofferding opensource@bofferding.net
- Loading branch information