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 crash for layer names with non-ascii characters #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hristost
Copy link

This pull requests fixes a crash that would occur if a layer name used non-ascii characters and layerNameCString would become NULL.

The C string will work as before for ASCII names, so this commit does not break compatibility. However, in the PSD spec I could not find any mention of how non-ascii layer names should be handled. It is entirely possible that this specific version of the file format did not support unicode layer names. Photoshop 2021 and its iPad counterpart seem to read layer names in a different encoding, but that could be because they are only working with what was available in the file spec PSDWriter uses. Procreate on the iPad reads unicode layer names without any issues.

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.

1 participant