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

rtextures: Fix ImageFromImage crash #2594

Merged
merged 1 commit into from
Jul 26, 2022

Conversation

wiertek
Copy link
Contributor

@wiertek wiertek commented Jul 26, 2022

Height of the rectangle can be float, which may lead to doing extra iteration of loop and writing out of bounds.

This only fixes problem reported in #2577, but there may be another usages of using rect dimensions without casting in other pieces of code.

Height of the rectangle can be float, which
may lead to doing extra iteration of loop and
writing out of bounds.
@raysan5 raysan5 merged commit 5a2f25c into raysan5:master Jul 26, 2022
@raysan5
Copy link
Owner

raysan5 commented Jul 26, 2022

@wiertek Thanks for the fast review! :)

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