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 in opj_tcd_tile_t #605

Closed
boxerab opened this issue Sep 22, 2015 · 2 comments
Closed

potential overflow in opj_tcd_tile_t #605

boxerab opened this issue Sep 22, 2015 · 2 comments

Comments

@boxerab
Copy link
Contributor

boxerab commented Sep 22, 2015

opj_tcd_tile_t contains a numpix variable, which counts the number of pixels in a tile.
It is currently of type OPJ_INT32, but should be changed to OPJ_INT64 to avoid overflow.

@boxerab
Copy link
Contributor Author

boxerab commented Jan 4, 2016

I think just changing it to OPJ_UINT32 should be fine.

@boxerab
Copy link
Contributor Author

boxerab commented Jan 4, 2016

Actually, I don't think the library will be able to decode tiles larger than 2^31 pixels in the foreseeable
future, so I am closing this issue.

@boxerab boxerab closed this as completed Jan 4, 2016
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

No branches or pull requests

1 participant