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

Commit 27cabc7d authored by Ajay Panicker's avatar Ajay Panicker Committed by android-build-merger
Browse files

Merge "Merge "AVRCP: Check number of text attribute values in response" into...

Merge "Merge "AVRCP: Check number of text attribute values in response" into oc-dev am: ce28b982 am: 077e12d8 am: ad8d2974" into oc-mr1-dev-plus-aosp
am: 1d5bd870

Change-Id: Idaf09a0154a3466a33491f095c309d7af85d2bae
parents 33a56ed7 1d5bd870
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -492,6 +492,12 @@ static tAVRC_STS avrc_ctrl_pars_vendor_rsp(tAVRC_MSG_VENDOR* p_msg,
          p_result->get_cur_app_val.num_val * sizeof(tAVRC_APP_SETTING));
      AVRC_TRACE_DEBUG("%s attr count = %d ", __func__,
                       p_result->get_cur_app_val.num_val);

      if (p_result->get_cur_app_val.num_val > AVRC_MAX_APP_ATTR_SIZE) {
        android_errorWriteLog(0x534e4554, "63146237");
        p_result->get_cur_app_val.num_val = AVRC_MAX_APP_ATTR_SIZE;
      }

      for (int xx = 0; xx < p_result->get_cur_app_val.num_val; xx++) {
        BE_STREAM_TO_UINT8(app_sett[xx].attr_id, p);
        BE_STREAM_TO_UINT8(app_sett[xx].attr_val, p);