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

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

Merge "DO NOT MERGE: AVRCP: Check the number of text attributes requested"...

Merge "DO NOT MERGE: AVRCP: Check the number of text attributes requested" into nyc-dev am: b01ee142 am: 6c86c5fb am: 7a8e9c13
am: 3a93258b

Change-Id: Ic8af3f38856ec2be7dffa347c04432cb517c265a
parents 3f64b33d 3a93258b
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -170,6 +170,12 @@ static tAVRC_STS avrc_pars_vendor_cmd(tAVRC_MSG_VENDOR *p_msg, tAVRC_COMMAND *p_
            status = AVRC_STS_INTERNAL_ERR;
            status = AVRC_STS_INTERNAL_ERR;
            break;
            break;
        }
        }

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

        p_u8 = p_result->get_cur_app_val.attrs;
        p_u8 = p_result->get_cur_app_val.attrs;
        for (xx=0, yy=0; xx< p_result->get_cur_app_val.num_attr; xx++)
        for (xx=0, yy=0; xx< p_result->get_cur_app_val.num_attr; xx++)
        {
        {