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

specific check for bad size field in header attributes (related to #248) #436

Merged

Conversation

peterhillman
Copy link
Contributor

Throws a more intuitive error message if the size field of a header attribute is negative when reading the OpenEXR Header. On x86_64 architectures, all negative sizes previously caused a std::bad_alloc exception to be thrown, since negative values are treated as positive values bigger than the maximum addressable space. This change throws a clearer message.

Copy link
Contributor

@lgritz lgritz 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 4c146c5 into AcademySoftwareFoundation:master Jul 11, 2019
@cary-ilm cary-ilm added this to the v2.4.0 milestone Aug 29, 2019
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

3 participants