Skip to content

Conversation

@hrantzsch
Copy link
Owner

macOS' SecKeychainFindGenericPassword can return a non-NULL item pointer even if the function fails (because the item is not found). In this case we must not try to CFRelease the item, or we'll segfault.

macOS' SecKeychainFindGenericPassword can return a non-NULL item pointer
even if the function fails (because the item is not found). In this case
we must not try to CFRelease the item, or we'll segfault.
@hrantzsch hrantzsch requested a review from reneme January 2, 2020 10:35
@hrantzsch hrantzsch merged commit 48c78fc into master Jan 2, 2020
@hrantzsch hrantzsch deleted the fix/cfrelease-segfault branch January 2, 2020 10:44
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