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

Fix a few illegal pointer usages #5279

Merged
merged 1 commit into from
Jan 26, 2025
Merged

Conversation

TedLyngmo
Copy link
Contributor

Fixes #5278

@@ -12334,7 +12334,7 @@ H5S_hyper_get_first_inc_block(const H5S_t *space, hsize_t clip_size, bool *parti
if (diminfo->start >= clip_size) {
ret_value = 0;
if (partial)
partial = false;
*partial = false;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Great catch! Did you happen to see this issue with a tool or just from reading the code?

Copy link
Contributor Author

@TedLyngmo TedLyngmo Jan 24, 2025

Choose a reason for hiding this comment

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

I actually didn't see it before I put set (C_STANDARD 23) everywhere. :-) Then the compiler suddenly started barking.

qkoziol
qkoziol previously approved these changes Jan 24, 2025
Copy link
Contributor

@qkoziol qkoziol left a comment

Choose a reason for hiding this comment

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

Nice!

@lrknox lrknox merged commit 985df02 into HDFGroup:develop Jan 26, 2025
76 checks passed
@TedLyngmo TedLyngmo deleted the ptr_fixes branch January 26, 2025 08:17
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.

Erroneous assignment of false to partial in src/H5Shyper.c
4 participants