Skip to content

Conversation

@matcabral
Copy link
Contributor

OMPI send and receive mesages use size_t for the lenght while PSM and PSM2
psm(2)mq_send/receive use uint32_t. Type size_t is 64 bits in 64 bits arch.
Therefore, this patch adds a sanity check on the lenght of the message
and fails gracefully.

Signed-off-by: Matias Cabral matias.a.cabral@intel.com
(cherry picked from commit 644641d)

OMPI send and receive mesages use size_t for the lenght while PSM and PSM2
psm(2)mq_send/receive use uint32_t. Type size_t is 64 bits in 64 bits arch.
Therefore, this patch adds a sanity check on the lenght of the message
and fails gracefully.

Signed-off-by: Matias Cabral <matias.a.cabral@intel.com>
(cherry picked from commit 644641d)
@matcabral matcabral requested a review from hppritcha May 10, 2017 21:24
@rhc54 rhc54 added this to the v2.0.3 milestone May 10, 2017
@rhc54 rhc54 added the bug label May 10, 2017
Copy link
Member

@hppritcha hppritcha left a comment

Choose a reason for hiding this comment

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

It would be nice to make this length check into a macro or inline function, but its okay as is.

@matcabral
Copy link
Contributor Author

@hppritcha I lack permissions to merge this. Would you please merge? thanks,

@hppritcha
Copy link
Member

@jsquyres I think this is ready to go.

@jsquyres jsquyres merged commit a1b1855 into open-mpi:v2.0.x May 12, 2017
@matcabral matcabral deleted the psm_max_message_size branch June 23, 2017 23:31
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