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

Int overflow fixed #1159

Merged
merged 3 commits into from
Nov 16, 2018
Merged

Int overflow fixed #1159

merged 3 commits into from
Nov 16, 2018

Conversation

ichlubna
Copy link
Contributor

@ichlubna ichlubna commented Oct 21, 2018

When compressing a lot of slices (starting from 44 FullHD slices with 3 8bit components in our experiments) the rate values are high enough to cause an int overflow that leads to negative lengths and wrong results. The cast happens too late.
Fixes #1162

When compressing a lot of slices (starting from 44 FullHD slices with 3 8bit components in our experiments) the rate values are high enough to cause an int overflow that leads to negative lengths and wrong results. The cast happens too late.
src/lib/openjp3d/tcd.c Outdated Show resolved Hide resolved
src/lib/openjp3d/tcd.c Outdated Show resolved Hide resolved
src/lib/openjp3d/tcd.c Outdated Show resolved Hide resolved
src/lib/openjp3d/tcd.c Outdated Show resolved Hide resolved
@stweil
Copy link
Contributor

stweil commented Nov 8, 2018

Travis complains about wrong indentation (see https://travis-ci.org/uclouvain/openjpeg/jobs/450900304). Could you please fix that, too?

Copy link
Contributor

@stweil stweil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now, thank you!

@rouault rouault merged commit c196b23 into uclouvain:master Nov 16, 2018
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.

4 participants