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

Possible overflow/panic for ~65k pixel masks (256x256) #4

Open
MaulingMonkey opened this issue Mar 20, 2020 · 0 comments
Open

Possible overflow/panic for ~65k pixel masks (256x256) #4

MaulingMonkey opened this issue Mar 20, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@MaulingMonkey
Copy link

https://github.com/matheuslessarodrigues/ase-rs/blob/427b6fd5c278df29e37624e90d1022fd22f5f1f7/src/chunk/mask_chunk.rs#L29

width/height here are u16s. height * (width + 7) will result in an overflowing u16, given width = height = 256

@vamolessa vamolessa added the bug Something isn't working label Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants