Skip to content

fix(image): prevent panic on 0x0 images by asserting size early#3378

Open
Infinty-ux wants to merge 2 commits into
iced-rs:masterfrom
Infinty-ux:fix-image-zero-size
Open

fix(image): prevent panic on 0x0 images by asserting size early#3378
Infinty-ux wants to merge 2 commits into
iced-rs:masterfrom
Infinty-ux:fix-image-zero-size

Conversation

@Infinty-ux

Copy link
Copy Markdown

Fixes #3342. This adds an assertion to \Handle::from_rgba\ so that it panics immediately with a clear message instead of crashing later in the WGPU pipeline.

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.

Images can cause crashes if the Handle is of size (0, 0)

1 participant