Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 750a338c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge changes from topic "am-154171ba-0805-48c6-88cf-c592ee3cf37c" into cw-f-dev

* changes:
  [automerger] DO NOT MERGE: HH: Check parameter length in bta_hh_ctrl_dat_act am: bb8ae44e am: ec030aa5 am: e303051b
  [automerger] DO NOT MERGE: HH: Check parameter length in bta_hh_ctrl_dat_act am: bb8ae44e am: ec030aa5
  [automerger] DO NOT MERGE: HH: Check parameter length in bta_hh_ctrl_dat_act am: bb8ae44e
  DO NOT MERGE: HH: Check parameter length in bta_hh_ctrl_dat_act
parents b01d4653 fa6cc11d
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@

#if defined(BTA_HH_INCLUDED) && (BTA_HH_INCLUDED == TRUE)

#include <log/log.h>
#include <string.h>

#include "bta_sys.h"
@@ -764,6 +765,12 @@ void bta_hh_ctrl_dat_act(tBTA_HH_DEV_CB *p_cb, tBTA_HH_DATA * p_data)
    APPL_TRACE_DEBUG("Ctrl DATA received w4: event[%s]",
                        bta_hh_get_w4_event(p_cb->w4_evt));
#endif
    if (pdata->len == 0) {
        android_errorWriteLog(0x534e4554, "116108738");
        p_cb->w4_evt = 0;
        osi_free_and_reset((void**)&pdata);
        return;
    }
    hs_data.status  = BTA_HH_OK;
    hs_data.handle  = p_cb->hid_handle;