OSDN Git Service

Fix potential OOB vulnerability when an HCI event is received
authorjonerlin <jonerlin@google.com>
Mon, 2 Mar 2020 11:13:31 +0000 (19:13 +0800)
committerjonerlin <jonerlin@google.com>
Thu, 19 Mar 2020 16:15:15 +0000 (00:15 +0800)
commit3f6a5bdc310facef3d8e8ff86083711b24fd110c
tree8750a342d242bef3cd4ef6df6f0cabc011313fa0
parent2dcb0c2d590df1b01c30f7a63437846feae5fa5e
Fix potential OOB vulnerability when an HCI event is received

* Check the minimum length of Hci Events to avoid OOB vulnerability

Bug: 142546104
Bug: 142546561
Bug: 142544089
Bug: 142638492
Bug: 142638392
Bug: 142544079
Bug: 142543497
Test: inject function, Bluetooth regression test PASS.
Change-Id: I761fc56dae45bd1fe24e55669adf6a9965717830
stack/btu/btu_hcif.cc
stack/include/hci_evt_length.h [new file with mode: 0644]