Skip to content

opal_var_dump_color_keys: fix an array overflow #11828

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 1 commit into from
Oct 29, 2023

Conversation

ggouaillardet
Copy link
Contributor

@ggouaillardet ggouaillardet commented Jul 18, 2023

since opal_var_dump_color_keys is used with opal_argv_count() and friends, make sure is is long enough and NULL terminated

Thanks to Niv Shpak for reporting this and identifying the root cause.

Refs. #11826

@ggouaillardet
Copy link
Contributor Author

@nivShpak could you please double check I correctly wrote your name in the commit message?

@artpol84
Copy link
Contributor

With @devreal hint, I think that #11827 looks more correct now.
Also, letting the fresh developer fix the issue he discovered is the right thing to do IMO as I've already said, but up to you.
#11827 should be ready to merge, let me know if it needs to update or close if you want to go with this one.

@jsquyres
Copy link
Member

jsquyres commented Oct 29, 2023

Rebased this old PR to bring it up to the current tip of main and get new CI runs.

since opal_var_dump_color_keys is used with opal_argv_count()
and friends, make sure is is long enough and NULL terminated

Thanks to Niv Shpak for reporting this and identifying the root cause.

Refs. open-mpi#11826

Signed-off-by: Gilles Gouaillardet <[email protected]>
@jsquyres jsquyres force-pushed the topic/opal_params_core branch from a79b9bc to 7b325e3 Compare October 29, 2023 13:55
@jsquyres jsquyres merged commit 14ecf5d into open-mpi:main Oct 29, 2023
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.

4 participants