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

Various codeql updates #37

Merged
merged 48 commits into from
Feb 12, 2025
Merged

Various codeql updates #37

merged 48 commits into from
Feb 12, 2025

Conversation

brtnfld
Copy link
Collaborator

@brtnfld brtnfld commented Feb 10, 2025

Mostly addressing unbounded writes and unused variables.

brtnfld and others added 30 commits December 9, 2024 09:37
* fixed HDF5_VOL_CONNECTOR settings for the tests
* update the README
* lower test timeout
* fixed critical codeQL items
* fixed codeQL issues

* Committing clang-format changes

---------

Co-authored-by: github-actions <github-actions[bot]@users.noreply.github.com>
* fixed codeQL issues

* Committing clang-format changes

* codeQL fixes

* Committing clang-format changes

* syntax

* Fix code scanning alert no. 292: Unbounded write

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Committing clang-format changes

* updates

* Committing clang-format changes

---------

Co-authored-by: github-actions <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
src/H5LS.c Outdated
"Supported options: SSD|BURST_BUFFER|MEMORY|GPU\n",
type);

size_t copy_len = strlcpy(truncated_msg, type, sizeof(truncated_msg));
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we care too much about using non-standard C?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I fixed to use snprintf

src/H5LS.c Fixed Show fixed Hide fixed
src/H5LS.c Fixed Show fixed Hide fixed
src/H5LS.c Fixed Show fixed Hide fixed
src/H5LS.c Fixed Show fixed Hide fixed
zhenghh04
zhenghh04 previously approved these changes Feb 11, 2025
@brtnfld brtnfld merged commit fddc059 into HDFGroup:develop Feb 12, 2025
5 checks passed
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