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

prov/verbs: Fix coverity issue about overflowed return value #10536

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

j-xiong
Copy link
Contributor

@j-xiong j-xiong commented Nov 13, 2024

The function vrb_eq_xrc_recip_conn_event was defined as size_t but can return a nagative value on error which would overflow when casted to int. Change the type to ssize_t.

Also change the return type of vrb_eq_xrc_connected_event to ssize_t to be consistent with its caller and the function it calls.

The function `vrb_eq_xrc_recip_conn_event` was defined as size_t but
can return a nagative value on error which would overflow when casted
to int. Change the type to ssize_t.

Also change the return type of `vrb_eq_xrc_connected_event` to ssize_t
to be consistent with its caller and the function it calls.

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
@j-xiong j-xiong merged commit 8345021 into ofiwg:main Nov 14, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants