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

Commit 953367eb authored by Android Build Merger (Role)'s avatar Android Build Merger (Role)
Browse files

[automerger] DO NOT MERGE: AVRCP: Check number of text attribute values in...

[automerger] DO NOT MERGE: AVRCP: Check number of text attribute values in response am: 81e85959 am: f046092a am: a791e953 am: 255b1b4f

Change-Id: I393094413a4eb635cd80aaa7b7dc74fac8e5dbc0
parents d4c5d7f6 255b1b4f
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -265,6 +265,13 @@ static tAVRC_STS avrc_ctrl_pars_vendor_rsp(
        tAVRC_APP_SETTING *app_sett =
            (tAVRC_APP_SETTING*)osi_malloc(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);