-
Notifications
You must be signed in to change notification settings - Fork 72
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
Garbage value returned to caller in func NetMLDP_HostGrpLeave #33
Comments
Hi @zaimingli. Yes, this is a bug. Thank you for bring this to our attention. The solution is to initialize |
hello @yasosa305, thank you for your reply, it encourages me a lot. Recently I found a few more undefined behaviors, which may lead to some dangerous actions. The details are as follows:
Meanwhile, cc @wes-jmagasrevy and @jamagasr, as it seems you are the owners of the code. Looking forward to your reply, it's very important to me! Best Regards, |
Hi everyone,
I found the return value of function
NetMLDP_HostGrpLeave
will be an uninitialized variable if users call this function without occupying theNet_GlobalLock
and parameterp_addr
is a null pointer.In detail, assuming that the branch judgment condition on line 566 is satisfied, then the function will goto
exit_release
and returnhost_grp_leave
, which is not initialized anywhere. The caller will get dirty garbage, leading to some unexpected results...This is a public API, the wrong return value may mislead the user. Looking forward to your reply!
The text was updated successfully, but these errors were encountered: