summaryrefslogtreecommitdiffstats
path: root/stack/btm/btm_devctl.c
diff options
context:
space:
mode:
authorJakub Pawlowski <jpawlowski@google.com>2018-11-27 18:22:22 +0100
committerTim Schumacher <timschumi@gmx.de>2019-03-23 15:50:54 +0100
commit4363f8407fb8dfe628b4e34eda4d1ed443461b0d (patch)
tree44571a059bd40743f7ab13c7f5d75f3548cc9f22 /stack/btm/btm_devctl.c
parent108912d72017f3273081c1106acd539bf8be7a6c (diff)
downloadandroid_system_bt-4363f8407fb8dfe628b4e34eda4d1ed443461b0d.tar.gz
android_system_bt-4363f8407fb8dfe628b4e34eda4d1ed443461b0d.tar.bz2
android_system_bt-4363f8407fb8dfe628b4e34eda4d1ed443461b0d.zip
Fix buffer overflow in btif_dm_data_copy
When we use a union, we should always define variables as the union type, not as one of the field subtypes. If the latter is cast to the union type, buffer overflow can happen. Bug: 110166268 Test: compilation Change-Id: I473c03b099ad5a326e7a3739f65efd33cf4775bd Merged-In: I473c03b099ad5a326e7a3739f65efd33cf4775bd (cherry picked from commit ea90417d9965aec1c475418ca8f8f305af12de2d)
Diffstat (limited to 'stack/btm/btm_devctl.c')
0 files changed, 0 insertions, 0 deletions