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

Potential overflow when precision is larger than 32 #781

Closed
boxerab opened this issue May 7, 2016 · 2 comments
Closed

Potential overflow when precision is larger than 32 #781

boxerab opened this issue May 7, 2016 · 2 comments

Comments

@boxerab
Copy link
Contributor

boxerab commented May 7, 2016

The JPEG 2000 standard allows up to 38 bit precision.

There are many places in the code of the form

(1 << image->comps[3].prec)

which will overflow for large precision.

@boxerab
Copy link
Contributor Author

boxerab commented Dec 29, 2016

Happy Holidays

@boxerab boxerab reopened this Dec 29, 2016
@rouault
Copy link
Collaborator

rouault commented Jul 30, 2017

Precision limited now to 31 bit per e03e947

@rouault rouault closed this as completed Jul 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants