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

No overflow protection for i32 as usize in this crate #45

Open
namse opened this issue May 18, 2023 · 0 comments
Open

No overflow protection for i32 as usize in this crate #45

namse opened this issue May 18, 2023 · 0 comments

Comments

@namse
Copy link
Contributor

namse commented May 18, 2023

I found that some codes change i32 to usize without any overflow protection, like

let top_in_psd = idx / self.width() as usize + self.layer_properties.layer_top as usize;

I am facing the overflow error on my product.

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 a pull request may close this issue.

1 participant