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

prevent integer overflow of lineOffsetSize #1260

Merged

Conversation

peterhillman
Copy link
Contributor

Fix issue in Imf::ScanLineInputFile found by Nick C: overflow computing lineOffsetSize could cause it to be negative. This bypassed the test introduced by #824 and could also prevent very large files reading correctly.

Signed-off-by: Peter Hillman peterh@wetafx.co.nz

Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
Copy link
Contributor

@meshula meshula left a comment

Choose a reason for hiding this comment

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

lgtm!

@peterhillman peterhillman merged commit 91c4ae1 into AcademySoftwareFoundation:main May 10, 2022
@peterhillman peterhillman deleted the lineoffsetsize_fix branch May 10, 2022 20:12
cary-ilm pushed a commit to cary-ilm/openexr that referenced this pull request Mar 3, 2023
cary-ilm pushed a commit that referenced this pull request Mar 5, 2023
Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
@cary-ilm cary-ilm added the v3.1.6 label Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants