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 precomposeFileName buffer overflow issue #171

Merged

Conversation

solarispika
Copy link
Contributor

Ensure sufficient space for null terminator in the buffer.
Otherwise, it returns empty string easily for non-ascii characters.

Reference: https://developer.apple.com/documentation/corefoundation/1542721-cfstringgetcstring?language=objc

Ensure sufficient space for null terminator in the buffer.
Otherwise, it returns empty string easily for non-ascii characters.

Reference: https://developer.apple.com/documentation/corefoundation/1542721-cfstringgetcstring?language=objc
@SpartanJ SpartanJ merged commit bc85baf into SpartanJ:master Nov 23, 2023
3 checks passed
@solarispika solarispika deleted the fix/precompose-filename-fail-easily branch December 11, 2023 09:43
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

2 participants