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

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

Merge changes from topic "am-fb3a89c6-818a-4835-a86a-2acea0eee0a9" into cw-f-dev

* changes:
  [automerger] DO NOT MERGE: AVRCP: Check number of text attributes in response am: eb3fcc41 am: 9df2a439 am: 0268581e
  [automerger] DO NOT MERGE: AVRCP: Check number of text attributes in response am: eb3fcc41 am: 9df2a439
  [automerger] DO NOT MERGE: AVRCP: Check number of text attributes in response am: eb3fcc41
  DO NOT MERGE: AVRCP: Check number of text attributes in response
parents cc4391d8 daa582c2
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -22,6 +22,7 @@
#include "avrc_defs.h"
#include "avrc_defs.h"
#include "avrc_int.h"
#include "avrc_int.h"
#include "bt_utils.h"
#include "bt_utils.h"
#include "log/log.h"


/*****************************************************************************
/*****************************************************************************
**  Global data
**  Global data
@@ -226,6 +227,12 @@ static tAVRC_STS avrc_ctrl_pars_vendor_rsp(
            break;
            break;
        }
        }
        BE_STREAM_TO_UINT8(p_result->list_app_attr.num_attr, p);
        BE_STREAM_TO_UINT8(p_result->list_app_attr.num_attr, p);

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

        AVRC_TRACE_DEBUG("%s attr count = %d ", __func__, p_result->list_app_attr.num_attr);
        AVRC_TRACE_DEBUG("%s attr count = %d ", __func__, p_result->list_app_attr.num_attr);
        for(int xx = 0; xx < p_result->list_app_attr.num_attr; xx++)
        for(int xx = 0; xx < p_result->list_app_attr.num_attr; xx++)
        {
        {