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

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

Merge "Telephony: Check the length of phone numbers before use"

parents 23b9e8b3 5b8b3a49
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1095,6 +1095,11 @@ public class PhoneNumberUtils
     */
    private static byte[]
    numberToCalledPartyBCDHelper(String number, boolean includeLength) {
        // returns null if number is empty
        if (TextUtils.isEmpty(number)) {
            return null;
        }

        int numberLenReal = number.length();
        int numberLenEffective = numberLenReal;
        boolean hasPlus = number.indexOf('+') != -1;