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 use-after-free in exception replay #2947

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Conversation

bwoebi
Copy link
Collaborator

@bwoebi bwoebi commented Nov 13, 2024

Depending on where the exception originates, a span may have been part of it and be freed during serialization. Immediately send to avoid dangling pointers.

Depending on where the exception originates, a span may have been part of it and be freed during serialization.
Immediately send to avoid dangling pointers.

Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
@bwoebi bwoebi requested a review from a team as a code owner November 13, 2024 13:20
@codecov-commenter
Copy link

codecov-commenter commented Nov 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.21%. Comparing base (e2b0a15) to head (495a98d).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2947      +/-   ##
============================================
- Coverage     73.62%   72.21%   -1.42%     
  Complexity     2529     2529              
============================================
  Files           109      136      +27     
  Lines         10410    14452    +4042     
  Branches          0      991     +991     
============================================
+ Hits           7664    10436    +2772     
- Misses         2746     3472     +726     
- Partials          0      544     +544     
Flag Coverage Δ
appsec-extension 68.57% <ø> (?)
tracer-php 73.62% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 27 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e2b0a15...495a98d. Read the comment docs.

@pr-commenter
Copy link

pr-commenter bot commented Nov 13, 2024

Benchmarks [ tracer ]

Benchmark execution time: 2024-11-13 13:46:56

Comparing candidate commit 495a98d in PR branch bob/exception-debugger-uaf with baseline commit e2b0a15 in branch master.

Found 1 performance improvements and 0 performance regressions! Performance is the same for 177 metrics, 0 unstable metrics.

scenario:TraceSerializationBench/benchSerializeTrace

  • 🟩 execution_time [-8.826µs; -4.574µs] or [-4.382%; -2.271%]

@bwoebi bwoebi merged commit 1f33697 into master Nov 13, 2024
719 of 744 checks passed
@bwoebi bwoebi deleted the bob/exception-debugger-uaf branch November 13, 2024 15:55
@github-actions github-actions bot added this to the 1.5.0 milestone Nov 13, 2024
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.

3 participants