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

jaeger::TUDPTransport::write crash when getaddrinfo returns error #1116

Merged

Conversation

esigo
Copy link
Member

@esigo esigo commented Dec 4, 2021

Fixes #1114 (issue)

Changes

when getaddrinfo used in jaeger::TUDPTransport::open returns error, we still tend to dereference server_addr_info_ in member methods while it is null.
The PR adds the null check to avoid SIGSEGV.
For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • Changes in public API reviewed

@esigo esigo requested a review from a team December 4, 2021 20:05
@codecov
Copy link

codecov bot commented Dec 4, 2021

Codecov Report

Merging #1116 (9ccccd8) into main (c50ed1c) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1116   +/-   ##
=======================================
  Coverage   93.39%   93.39%           
=======================================
  Files         165      165           
  Lines        6229     6229           
=======================================
  Hits         5817     5817           
  Misses        412      412           

@ThomsonTan ThomsonTan merged commit a980571 into open-telemetry:main Dec 7, 2021
@esigo esigo deleted the jaeger--TUDPTransport--write-crash branch December 7, 2021 17:10
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.

jaeger::TUDPTransport::write crash when wrong endpoint used
3 participants