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

cute_aseprite Crash on tags user data #377

Open
KasumiArai opened this issue Mar 11, 2024 · 0 comments
Open

cute_aseprite Crash on tags user data #377

KasumiArai opened this issue Mar 11, 2024 · 0 comments

Comments

@KasumiArai
Copy link

KasumiArai commented Mar 11, 2024

Making an issue before a pull request in case I'm misunderstanding something.

Here a new tag is created but its user data is not initialized: https://github.com/RandyGaul/cute_headers/blob/master/cute_aseprite.h#L1100
Which should mean the uninitialized user data (like has_text) is random. The crash I was having was because the "has_text" field was "true" due to a random non zero value, which led to a crash when actually checking the text field which was NULL.

(Sorry for the edit to the issue, I accidentally pressed shift+enter, creating the issue before I was finished.)

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

No branches or pull requests

1 participant