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

JPG overflow fix. Fixes #409 #412

Merged
merged 2 commits into from May 12, 2015
Merged

JPG overflow fix. Fixes #409 #412

merged 2 commits into from May 12, 2015

Conversation

adam-frisby
Copy link
Contributor

On release builds overflows are not checked, on debug builds they are causing Image to panic on certain JPGs. "wrapping_shl" is unstable and not available in Rust Beta so instead this checks if the shift is too large and just sets the value to 0 if it is.

@nwin
Copy link
Contributor

nwin commented May 12, 2015

Great, thanks what a relieve!

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