Skip to content

Coverity Fixes for coll/tuned and coll/han/alltoallv #13187

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

Merged
merged 5 commits into from
Apr 15, 2025

Conversation

lrbison
Copy link
Contributor

@lrbison lrbison commented Apr 8, 2025

A series of small fixes for problems that Coverity identified. These only apply to main and don't need backporting.

Copy link

github-actions bot commented Apr 8, 2025

Hello! The Git Commit Checker CI bot found a few problems with this PR:

24e6d8e: coll/han: Fix Error-Case

  • check_signed_off: does not contain a valid Signed-off-by line

e689a3a: coll/tuned: Sanitize NCOMSIZES during file read

  • check_signed_off: does not contain a valid Signed-off-by line

2f9d1d2: coll/tuned: Correct bound-check

  • check_signed_off: does not contain a valid Signed-off-by line

7fc5ab0: opal/util/json: Remove an extraneous check

  • check_signed_off: does not contain a valid Signed-off-by line

c832fe2: coll/tuned: Prevent memory leak during tuning-file...

  • check_signed_off: does not contain a valid Signed-off-by line

Please fix these problems and, if necessary, force-push new commits back up to the PR branch. Thanks!

lrbison added 5 commits April 15, 2025 13:13
During a failed json tuning file read, it was possible to leak some
json structures.  Explicitly destroy them all on any error path.

Fixes Coverity issues 1646446, 1646447, 1646441, and 1643439

Signed-off-by: Luke Robison <[email protected]>
Fixes Coverity Issue 1646442.

Signed-off-by: Luke Robison <[email protected]>
Correct bounds-check on collective id, which was previously off by
one.  Fixes Coverity issues 1646445, 16464444, and 1646440.

Signed-off-by: Luke Robison <[email protected]>
Addresses Coverity 1646443

Signed-off-by: Luke Robison <[email protected]>
When the initial gather fails, don't attempt to free uninitialized memory.
Fixes Coverity 1645391 and 1645370

Signed-off-by: Luke Robison <[email protected]>
@lrbison lrbison merged commit 176278f into open-mpi:main Apr 15, 2025
15 checks passed
@lrbison lrbison deleted the coverity branch April 15, 2025 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants