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

Assert session args is valid UTF-8 #1900

Closed
wants to merge 1 commit into from
Closed

Conversation

l2dy
Copy link
Contributor

@l2dy l2dy commented Nov 18, 2023

If it is NULL, null pointer dereferencing in makeargs() would result in undefined behavior. https://developer.apple.com/documentation/xcode/null-reference-creation-and-null-pointer-dereference

@l2dy
Copy link
Contributor Author

l2dy commented Feb 17, 2024

UTF-8 was a red herring. It's makeargs() that should check if command is NULL before dereferencing *str.

@l2dy l2dy closed this Feb 17, 2024
@l2dy l2dy deleted the fix/assert-utf8 branch February 17, 2024 13:02
@l2dy l2dy restored the fix/assert-utf8 branch March 20, 2024 12:55
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.

None yet

1 participant