Fix the ADV crash issue in FHub product 32/274332/1
authorAyush Garg <ayush.garg@samsung.com>
Tue, 26 Apr 2022 10:26:15 +0000 (15:56 +0530)
committerAyush Garg <ayush.garg@samsung.com>
Tue, 26 Apr 2022 10:34:20 +0000 (16:04 +0530)
commitca886238f1c2a3807d0c6aca42525eec06386baa
tree2e53194a89b6943bdb565f04d4ec7007fe15b572
parent2b86c66cf51cbd52f1636de361420027795eda64
Fix the ADV crash issue in FHub product

Backtrace:
0  0xb2c5a112 in __bt_hal_parse_uuid (len=len@entry=44300, src=0x0, src@entry=0x102 <error: Cannot access memory at address 0x102>, dest=dest@entry=0xbe3747b4 "", length=0xbe3747ac, length@entry=0xbe37478c, is_solicit=is_solicit@entry=1) at /usr/include/bits/string_fortified.h:34 --> bluetooth-frwk-oal (rpm)
1  0xb2c5b2d2 in _bt_hal_set_advertising_data (adv_param_setup=...) at /usr/src/debug/bluetooth-frwk-0.6.0/bt-oal/bluez_hal/src/bt-hal-adapter-le.c:802 --> bluetooth-frwk-oal (rpm)

The crash was occuring due to parsing of wrong appearance
characteristic length.
This patch fixes the same.

Change-Id: I48524f69158b7fd3ac01811f05f2d9dbfe139fc6
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
bt-service/services/adapter/bt-service-core-adapter-le.c
include/bluetooth-api.h