Skip to content

LLAMA-18202: bt-core changes - #84

Open
PreethiALPI wants to merge 1 commit into
developfrom
LLAMA-18202_dev
Open

LLAMA-18202: bt-core changes#84
PreethiALPI wants to merge 1 commit into
developfrom
LLAMA-18202_dev

Conversation

@PreethiALPI

Copy link
Copy Markdown

Reason for change: Crash fix
Test Procedure: sanityTesting
Risks: Low
Priority: P2

Reason for change: Crash fix
Test Procedure: sanityTesting
Risks: Low
Priority: P2

Signed-off-by: ppalan289 <preethi_palanisamy@comcast.com>
Copilot AI lite review requested due to automatic review settings August 27, 2026 10:49
@PreethiALPI
PreethiALPI requested a review from a team as a code owner August 27, 2026 10:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR hardens bt-core teardown and paired-device enumeration paths to avoid crashes when the core handle or its DBus/GDBus connection has already been released.

Changes:

  • Add argument/connection-handle validation to btrCore_PopulateListOfPairedDevices to prevent dereferencing a released/NULL connection handle.
  • Update BTRCore_DeInit to snapshot connHdl into a temporary variable and NULL out the stored handle before releasing the underlying connection.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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