Diff between f5512018e2920b97176f9c9037ad4ec6ed2508b0 and 90fb3a75e35420f5c86a1b8663735083c180c55f
Changed Files
| File | Additions | Deletions | Status |
| android/bluetooth.c | +5 | -0 | modified |
Full Patch
diff --git a/android/bluetooth.c b/android/bluetooth.c
index fbe8458..ce69459 100644
--- a/android/bluetooth.c
+++ b/android/bluetooth.c
@@ -1280,6 +1280,11 @@ static void mgmt_auth_failed_event(uint16_t index, uint16_t length,
{
const struct mgmt_ev_auth_failed *ev = param;
+ if (length < sizeof(*ev)) {
+ error("Too small auth failed mgmt event (%u bytes)", length);
+ return;
+ }
+
DBG("");
set_device_bond_state(&ev->addr.bdaddr, status_mgmt2hal(ev->status),