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

Commits on Nov 13, 2024

  1. prov/verbs: Fix coverity issue about overflowed return value

    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 committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    75fe16c View commit details
    Browse the repository at this point in the history