Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cgo data conversion for bytes and strings #630

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

maraino
Copy link
Contributor

@maraino maraino commented Nov 13, 2024

Description

This commit fixes the conversion of CFStringRef to strings when CFStringGetCStringPtr fails. It also fixes panics when extracting attributes not present in the key. One example is extracting the tag in the mackms SearchKeys method if a key doesn't have one.

This commit fixes the conversion of CFStringRef to strings when
CFStringGetCStringPtr fails. It also fixes panics extracting attributes
not present in the key, one example of this is extracting the tag in the
mackms SearchKeys method, if a key doesn't have one.
@maraino maraino merged commit 3a8464f into master Nov 13, 2024
14 checks passed
@maraino maraino deleted the mariano/mackms-conversions branch November 13, 2024 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants