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

Fix null pointer dereference in tsl::profiler::CreateStub #60221

Merged

Commits on Apr 4, 2023

  1. Fix null pointer dereference in tsl::profiler::CreateStub

    The bug was found by Svace static analyzer:
    
    1. channel may be null
    2. it is passed to grpc::ProfileAnalysis::NewStub(channel)
    3. then passed to grpc::ProfileAnalysis::Stub::Stub(channel)
    4. then constructor grpc::internal::RpcMethod::RpcMethod() dereferences
       channel via channel->RegisterMethod(name)
    SweetVishnya committed Apr 4, 2023
    Configuration menu
    Copy the full SHA
    232683a View commit details
    Browse the repository at this point in the history