Prevent the buffer overflow error for adv data 86/256386/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 1 Apr 2021 23:04:41 +0000 (08:04 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 1 Apr 2021 23:06:49 +0000 (08:06 +0900)
commit06a736ca471e1eae900911742efca9f2feb65fb8
treec47e2b5d895dec4dcf9a4b1815415b28d2e6a766
parent6de5803b62f31d9d4f8d0397b5455b5b66efeec0
Prevent the buffer overflow error for adv data

0xb239567c in _bt_hal_set_advertising_data (adv_param_setup=...)
 adv_data = "\021\006", '\000' <repeats 14 times>, "\f]\021\006Z\266\f]Z\266\000@Z\266h"
 adv_data_str = "1106", '0' <repeats 29 times>, "C5D11065AB60C5D5AB600405AB668E"
 index = <optimized out>
 proxy = <optimized out>
 error = 0x0
 ret = <optimized out>
 temp = <optimized out>
 builder = <optimized out>
 event = <optimized out>
 length = 36
 i = <optimized out>
 slot_id = <optimized out>
 __func__ = "_bt_hal_set_advertising_data"

Change-Id: I20caf761dd9f006159783ae6eded349e7cc92948
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-oal/bluez_hal/src/bt-hal-adapter-le.c