Skip to content

[Coverity CID: 520266] Dereference before null check in subsys/bluetooth/host/classic/hfp_ag.c #90519

Closed
@zephyrbot

Description

@zephyrbot

Static code scan issues found in file:

https://github.com/zephyrproject-rtos/zephyr/tree/265cfb45a818f39cf03c3527b5d1b21027d3cac1/subsys/bluetooth/host/classic/hfp_ag.c

Category: Null pointer dereferences
Function: bt_hfp_ag_btrh_handler
Component: Bluetooth
CID: 520266

Details:

if (call && (call_state == BT_HFP_CALL_ACTIVE)) {

Please fix or provide comments in coverity using the link:

https://scan9.scan.coverity.com/#/project-view/29271/12996?selectedIssue=520266

For more information about the violation, check the Coverity Reference. (CWE-476)

Note: This issue was created automatically. Priority was set based on classification
of the file affected and the impact field in coverity. Assignees were set using the MAINTAINERS file.

Metadata

Metadata

Assignees

Labels

CoverityA Coverity detected issue or its fixarea: Bluetootharea: Bluetooth ClassicBluetooth Classic (BR/EDR)bugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions