-
Notifications
You must be signed in to change notification settings - Fork 13
Handle null pointer. #1141
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
Handle null pointer. #1141
Conversation
BenchmarksComparisonBenchmark execution time: 2025-07-16 07:11:27 Comparing candidate commit 2713e82 in PR branch Found 0 performance improvements and 1 performance regressions! Performance is the same for 51 metrics, 2 unstable metrics. scenario:concentrator/add_spans_to_concentrator
CandidateCandidate benchmark detailsGroup 1
Group 2
Group 3
Group 4
Group 5
Group 6
Group 7
Group 8
Group 9
Group 10
Group 11
Group 12
Group 13
BaselineOmitted due to size. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1141 +/- ##
==========================================
- Coverage 71.33% 71.33% -0.01%
==========================================
Files 343 343
Lines 52511 52523 +12
==========================================
+ Hits 37461 37465 +4
- Misses 15050 15058 +8
🚀 New features to boost your workflow:
|
Artifact Size Benchmark Reportaarch64-alpine-linux-musl
aarch64-unknown-linux-gnu
libdatadog-x64-windows
libdatadog-x86-windows
x86_64-alpine-linux-musl
x86_64-unknown-linux-gnu
|
To be honest, I don't like this. The C code should ensure no stray NULLs are flying around when they should not. |
The response is placed in a pointer passed by reference to
|
/merge |
View all feedbacks in Devflow UI.
This merge request is not mergeable yet, because of pending checks/missing approvals. It will be added to the queue as soon as checks pass and/or get approvals.
devflow unqueued this merge request: It did not become mergeable within the expected time |
/merge |
View all feedbacks in Devflow UI.
This merge request is not mergeable yet, because of pending checks/missing approvals. It will be added to the queue as soon as checks pass and/or get approvals.
devflow unqueued this merge request: It did not become mergeable within the expected time |
16dcefe
to
2713e82
Compare
/merge |
View all feedbacks in Devflow UI.
The expected merge time in
Tests failed on this commit cf43f5b: What to do next?
|
/remove |
View all feedbacks in Devflow UI.
This merge request was already processed and can't be unqueued anymore. To get help about command usage, write If you need support, contact us on Slack #devflow with those details! |
/merge |
View all feedbacks in Devflow UI.
The expected merge time in
|
What does this PR do?
Avoids segfaulting if a null pointer is passed from the C side.
Motivation
Since the response is allocated upon a successful call to send, there could be situations in which the call could fail, not filling the response pointer and, depending on the user flow, the pointer could be passed to
ddog_trace_exporter_response_free
orddog_trace_exporter_response_get_body
without being checked, causing a segfault.