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

Address CodeQL issues #36

Closed
wants to merge 61 commits into from
Closed

Address CodeQL issues #36

wants to merge 61 commits into from

Conversation

brtnfld
Copy link
Collaborator

@brtnfld brtnfld commented Dec 10, 2024

Add CodeQL action and address critical issues.

src/H5VLcache_ext.c Fixed Show fixed Hide fixed
src/H5VLcache_ext.c Fixed Show fixed Hide fixed
src/H5VLcache_ext.c Fixed Show fixed Hide fixed
src/H5VLcache_ext.c Fixed Show fixed Hide fixed
LOG_INFO(-1, " storage size: %.4f GiB",
p->H5LS->mspace_total / 1024. / 1024. / 1024.);
int ret =
snprintf(log_buffer, LOG_BUFFER_SIZE, " storage size: %.4f GiB",

Check failure

Code scanning / CodeQL

Unbounded write Critical

This 'call to sprintf' with input from
string read by fgets
may overflow the destination.

LOG_INFO(-1, " write buffer size: %.4f GiB",
p->H5LS->write_buffer_size / 1024. / 1024. / 1024.);
ret = snprintf(log_buffer, LOG_BUFFER_SIZE, " write buffer size: %.4f GiB",

Check failure

Code scanning / CodeQL

Unbounded write Critical

This 'call to sprintf' with input from
string read by fgets
may overflow the destination.
@brtnfld brtnfld closed this Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant