-
Notifications
You must be signed in to change notification settings - Fork 851
Revert "Remove UnixNetVConnection::startEvent - not actually called. (#7596)" + clang-analyzer fix #8184
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
Conversation
…pache#7596)" This reverts commit a56638f.
|
It's a bit weird that we don't see this clang-analyzer report on 8.1.x (#8180). Do we have any diffs? |
iocore/net/UnixNetVConnection.cc
Outdated
| connectUp(e->ethread, NO_FD); | ||
| } else { | ||
| lock.release(); | ||
| free(e->ethread); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should change to this->free(e->thread); to be clear on what's being invoked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this confused the clang-analyzer. Adding this fixed the report.
1a2decc to
b51ceb8
Compare
|
|
bneradt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
|
Cherry-picked to v9.0.x branch. |
This reverts commit a56638f.
Co-authored-by: Tomoaki Tanaka tomoatan@yahoo-corp.jp
Address a use-after-free on top of #8182.
https://ci.trafficserver.apache.org/clang-analyzer/github/8182/2021-07-28-135835-24348-1/report-26932e.html#EndPath