Skip to content

Conversation

@devreal
Copy link
Contributor

@devreal devreal commented Oct 30, 2020

In OPAL's keyval parser in add_to_env_str, for the first variable a buffer of size 1024 was allocated, regardless of the space needed. For any additional variables, the size might have been doubled at best, even if more space was required. This PR makes sure the allocated buffer is sufficiently large to store the value.

Cherry-pick of #8144 to v4.1.x release branch.

See #8117

Signed-off-by: Joseph Schuchart [email protected]

@devreal devreal requested a review from bosilca October 30, 2020 08:28
@jsquyres jsquyres added this to the v4.1.0 milestone Oct 30, 2020
@jsquyres
Copy link
Member

NOTE: This is not yet merged on master. Only merge this PR after #8144 is merged.

Signed-off-by: Joseph Schuchart <[email protected]>
(cherry picked from commit 320a9a1)
@devreal devreal force-pushed the fix_opal_add_to_env_str_alloc_v4.1.x branch from bb3e26e to 09b8736 Compare October 30, 2020 15:01
@devreal
Copy link
Contributor Author

devreal commented Oct 30, 2020

Updated with latest change from #8144

@jsquyres jsquyres merged commit bed022d into open-mpi:v4.1.x Oct 30, 2020
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