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

Brings chunk_info valgrind fix from 1.12 #677

Merged
merged 35 commits into from
May 24, 2021

Conversation

derobins
Copy link
Member

@derobins derobins commented May 22, 2021

Fixes uninitialized bytes alert from valgrind caused by not updating the buffer size after running compress2.

github-actions bot and others added 30 commits March 19, 2021 17:04
derobins and others added 5 commits May 14, 2021 17:39
* Fixes a minor valgrind issue in the chunk_info test

The chunk_info test incorrectly set the number of bytes in a compressed
buffer, which caused valgrind to complain about writing uninitialized
bytes.

* Committing clang-format changes

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
@@ -544,14 +544,15 @@ test_get_chunk_info_highest_v18(hid_t fapl)
/* Allocate input (compressed) buffer */
inbuf = HDcalloc(1, z_dst_nbytes);
Copy link
Member Author

Choose a reason for hiding this comment

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

Using calloc here quiets valgrind's 'uninitialized bytes' warning (1.12 used malloc), but still writes the larger, incorrect number of bytes.

@lrknox lrknox merged commit 2142359 into HDFGroup:develop May 24, 2021
@derobins derobins deleted the minor/valgrind branch July 28, 2021 16:35
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.

3 participants