[3.x] Sanitize input to ImageTexture::set_data() to prevent bad memory access#54935
[3.x] Sanitize input to ImageTexture::set_data() to prevent bad memory access#54935nobuyukinyuu wants to merge 1 commit intogodotengine:3.xfrom
Conversation
4b9d427 to
9ede3c2
Compare
|
Flags have changed to separate fields in 4.0; the state of the |
9ede3c2 to
9aea089
Compare
|
Does this change work with |
|
@Macksaur After testing, I notice that setting I don't know if this discrepancy would be considered another bug, but I feel like it is outside the scope of this PR, as it's not an issue introduced by these changes. It may require a separate bug report, testing on the 4.0 branch, etc. Hope that helps. |
71cb8d3 to
c58391c
Compare

Fixes #54930. As part of the refactoring of
texture.cpp, the equivalent checks should already be in the corresponding method inmaster.