OSDN Git Service

Bluetooth: Fix to avoid NULL pointer dereferences
authorHemant Gupta <hemantg@codeaurora.org>
Wed, 8 Jan 2014 07:12:13 +0000 (12:42 +0530)
committerHemant Gupta <hemantg@codeaurora.org>
Sun, 29 Jun 2014 06:41:02 +0000 (12:11 +0530)
commit831423ea1879244e746f39d7696ad4a66681f306
tree3e4d0f54c1d07518a9dbeb99015639808736b964
parentc8fe2925af4f5b167b615a0677adebbd156a4387
Bluetooth: Fix to avoid NULL pointer dereferences

This fix for avoiding NULL pointer dereferences:
 - Added check for state checking in btm_remove_acl function
   to avoid sending disconnect command if already in Disconnecting
   state.
 - Added NULL check for 'pin_code' in btif_dm_pin_reply function
 - Null check before accessing in BD interface layer configuration
   node variables.
 - Add NULL check before accessing p_bd_addr variable to avoid null
    pointer exception while referring to invalid memory.

Change-Id: Ib7ed45b6a1692785a45224d739a564f767e5b10f
btif/src/btif_config.c
btif/src/btif_dm.c
stack/btm/btm_acl.c
stack/btm/btm_sec.c