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

Refactor attribute size checks #1168

Merged

Conversation

kdt3rd
Copy link
Contributor

@kdt3rd kdt3rd commented Oct 2, 2021

This refactors the size checks against the file size, and has a cleanup pass to fix uninitialized values the memory sanitizer noticed, consistent types

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
for large attribute chunks, clear memory earlier, centralize file size
check, fix uninitialized memory error with memory sanitizer

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
Copy link
Contributor

@peterhillman peterhillman left a comment

Choose a reason for hiding this comment

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

LGTM

@cary-ilm cary-ilm merged commit f68dc19 into AcademySoftwareFoundation:master Oct 5, 2021
cary-ilm pushed a commit to cary-ilm/openexr that referenced this pull request Oct 14, 2021
* Avoid uninitialized memory error in non-sanitized libstdc++

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

* Refactor attribute size checks

for large attribute chunks, clear memory earlier, centralize file size
check, fix uninitialized memory error with memory sanitizer

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

* Fix typo

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
cary-ilm pushed a commit that referenced this pull request Oct 24, 2021
* Avoid uninitialized memory error in non-sanitized libstdc++

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

* Refactor attribute size checks

for large attribute chunks, clear memory earlier, centralize file size
check, fix uninitialized memory error with memory sanitizer

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

* Fix typo

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
@kdt3rd kdt3rd deleted the fix_memstream_impl branch February 12, 2022 21:10
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.

None yet

3 participants