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

Commit 8af005e1 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Correct max len when build ANR data"

parents 9a4b9030 0e4d0b10
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -863,7 +863,8 @@ public class UsimPhoneBookManager extends Handler implements IccConstants {
            return null;
        }

        int maxlength = ANR_ADDITIONAL_NUMBER_END_ID - ANR_ADDITIONAL_NUMBER_START_ID + 1;
        // numberToCalledPartyBCD has considered TOA byte
        int maxlength = ANR_ADDITIONAL_NUMBER_END_ID - ANR_ADDITIONAL_NUMBER_START_ID + 1 + 1;
        if (byteAnr.length > maxlength) {
            System.arraycopy(byteAnr, 0, data, ANR_TON_NPI_ID, maxlength);
            data[ANR_BCD_NUMBER_LENGTH] = (byte) (maxlength);