Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

SecureTransport: handle NULL trust on success#3886

Merged
ethomson merged 1 commit intomasterlibgit2/libgit2:masterfrom
cmn/copypeertrust-nulllibgit2/libgit2:cmn/copypeertrust-nullCopy head branch name to clipboard
Aug 5, 2016
Merged

SecureTransport: handle NULL trust on success#3886
ethomson merged 1 commit intomasterlibgit2/libgit2:masterfrom
cmn/copypeertrust-nulllibgit2/libgit2:cmn/copypeertrust-nullCopy head branch name to clipboard

Conversation

@carlosmn
Copy link
Member

@carlosmn carlosmn commented Aug 5, 2016

The SSLCopyPeerTrust call can succeed but fail to return a trust
object if it can't load the certificate chain and thus cannot check the
validity of a certificate. This can lead to us calling CFRelease on a
NULL trust object, causing a crash.

Handle this by returning ECERTIFICATE.

This may or may not solve #3885 /cc @the-kenny

The `SSLCopyPeerTrust` call can succeed but fail to return a trust
object if it can't load the certificate chain and thus cannot check the
validity of a certificate. This can lead to us calling `CFRelease` on a
`NULL` trust object, causing a crash.

Handle this by returning ECERTIFICATE.
@ethomson ethomson merged commit 56bbdf9 into master Aug 5, 2016
@ethomson ethomson deleted the cmn/copypeertrust-null branch January 9, 2019 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.