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

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

AVRCP: Check the number of text value attributes requested

am: 4523b44a

Change-Id: I7014801c4e9c358f198066aa05b9517cec5526ef
parents 3c959d74 4523b44a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -220,6 +220,11 @@ static tAVRC_STS avrc_pars_vendor_cmd(tAVRC_MSG_VENDOR* p_msg,
              p_result->get_app_val_txt.num_val)
            status = AVRC_STS_INTERNAL_ERR;
          else {
            if (p_result->get_app_val_txt.num_val > AVRC_MAX_APP_ATTR_SIZE) {
              android_errorWriteLog(0x534e4554, "63146237");
              p_result->get_app_val_txt.num_val = AVRC_MAX_APP_ATTR_SIZE;
            }

            p_u8 = p_result->get_app_val_txt.vals;
            for (xx = 0; xx < p_result->get_app_val_txt.num_val; xx++) {
              p_u8[xx] = *p++;