[Lldb-commits] [lldb] [LLDB][Telemetry]Init field to nullptr. (PR #131191)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Mar 13 12:07:22 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Vy Nguyen (oontvoo)
<details>
<summary>Changes</summary>
The field is currently un-initialised and can cause a crash in some build configs (where it got random values)
---
Full diff: https://github.com/llvm/llvm-project/pull/131191.diff
1 Files Affected:
- (modified) lldb/include/lldb/Core/Telemetry.h (+1-1)
``````````diff
diff --git a/lldb/include/lldb/Core/Telemetry.h b/lldb/include/lldb/Core/Telemetry.h
index 56259e4a673bf..29ec36b2d64d1 100644
--- a/lldb/include/lldb/Core/Telemetry.h
+++ b/lldb/include/lldb/Core/Telemetry.h
@@ -65,7 +65,7 @@ struct LLDBBaseTelemetryInfo : public llvm::telemetry::TelemetryInfo {
// TBD: could add some memory stats here too?
lldb::user_id_t debugger_id = LLDB_INVALID_UID;
- Debugger *debugger;
+ Debugger *debugger = nullptr;
// For dyn_cast, isa, etc operations.
llvm::telemetry::KindType getKind() const override {
``````````
</details>
https://github.com/llvm/llvm-project/pull/131191
More information about the lldb-commits
mailing list