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

[rmodels] Fix crash when NULL is passed to LoadImageFromCgltfImage #4563

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

CalebHeydon
Copy link
Contributor

This fixes a crash that can happen when null is passed to LoadImageFromCgltfImage. There is a case where the argument is null in LoadGLTF. A possible fix is to check if the it is null in LoadImageFromCgltfImage.

@raysan5 raysan5 merged commit f3f5f38 into raysan5:master Dec 2, 2024
14 checks passed
@raysan5
Copy link
Owner

raysan5 commented Dec 2, 2024

@CalebHeydon thanks for the review... note taht this function is only used internally to the module, I think this case is very unprobable to happen.

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.

2 participants